MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Cg Core Runtime API                cgGetFirstProgramAnnotation(3)



NAME
     cgGetFirstProgramAnnotation - get the first annotation of a
     program

SYNOPSIS
       #include 

       CGannotation cgGetFirstProgramAnnotation( CGprogram program );


PARAMETERS
     program The program from which to retrieve the annotation.

RETURN VALUES
     Returns the first annotation from the given program.

     Returns NUL if the program has no annotations.

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

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


ERORS
     CGINVALIDPROGRAMHANDLEROR is generated if program is
     not a valid program handle.

HISTORY
     cgGetFirstProgramAnnotation was introduced in Cg 1.4.

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