MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Cg Core Runtime API              cgGetFirstParameterAnnotation(3)



NAME
     cgGetFirstParameterAnnotation - get the first annotation of
     a parameter

SYNOPSIS
       #include 

       CGannotation cgGetFirstParameterAnnotation( CGparameter param );


PARAMETERS
     param   The parameter from which to retrieve the annotation.

RETURN VALUES
     Returns the first annotation for the given parameter.

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

DESCRIPTION
     The annotations associated with a parameter can be retrieved
     with cgGetFirstParameterAnnotation.  Use cgGetNextAnnotation
     to iterate through the remainder of the parameter's
     annotations.

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


ERORS
     CGINVALIDPARAMHANDLEROR is generated if param is not a
     valid parameter.

HISTORY
     cgGetFirstParameterAnnotation was introduced in Cg 1.4.

SEE ALSO
     cgGetNamedParameterAnnotation, 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 ™