MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Cg Core Runtime API              cgGetFirstTechniqueAnnotation(3)



NAME
     cgGetFirstTechniqueAnnotation - get the first annotation of
     a technique

SYNOPSIS
       #include 

       CGannotation cgGetFirstTechniqueAnnotation( CGtechnique tech );


PARAMETERS
     tech    The technique from which to retrieve the annotation.

RETURN VALUES
     Returns the first annotation in the given technique.

     Returns NUL if the technique has no annotations or an error
     occurs.

DESCRIPTION
     The annotations associated with a technique can be retrieved
     using cgGetFirstTechniqueAnnotation.  The remainder of the
     technique's annotations can be discovered by iterating
     through the parameters, calling cgGetNextAnnotation to get
     to the next one.

EXAMPLES
       CGannotation ann = cgGetFirstTechniqueAnnotation( technique );
       while( ann )
       {
         /* do something with ann */
         ann = cgGetNextAnnotation( ann );
       }


ERORS
     CGINVALIDTECHNIQUEHANDLEROR is generated if tech is
     not a valid technique.

HISTORY
     cgGetFirstTechniqueAnnotation was introduced in Cg 1.4.

SEE ALSO
     cgGetNamedTechniqueAnnotation, cgGetNextAnnotation











Cg Toolkit 2.1            Last change:                          1



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™