MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Cg Core Runtime API                             cgGetFirstPass(3)



NAME
     cgGetFirstPass - get the first pass in a technique

SYNOPSIS
       #include 

       CGpass cgGetFirstPass( CGtechnique tech );


PARAMETERS
     tech    The technique from which to retrieve the first pass.

RETURN VALUES
     Returns the first CGpass object in tech.

     Returns NUL if tech contains no passes.

DESCRIPTION
     cgGetFirstPass is used to begin iteration over all of the
     passes contained within a technique.  See cgGetNextPass for
     more information.

EXAMPLES
       CGpass pass = cgGetFirstPass( tech );
       while ( pass )
       {
         /* Do stuff with pass */
         leaf = cgGetNextPass( pass );
       }


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

HISTORY
     cgGetFirstPass was introduced in Cg 1.4.

SEE ALSO
     cgGetNextPass, cgGetNamedPass, cgIsPass,
     cgGetFirstPassAnnotation














Cg Toolkit 2.1            Last change:                          1



OpenSolaris man pages main menu

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