MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Cg Core Runtime API                         cgGetNextTechnique(3)



NAME
     cgGetNextTechnique - iterate through techniques in a effect

SYNOPSIS
       #include 

       CGtechnique cgGetNextTechnique( CGtechnique tech );


PARAMETERS
     tech    The current technique.

RETURN VALUES
     Returns the next technique in the effect's internal sequence
     of techniques.

     Returns NUL when tech is the last technique in the effect.

DESCRIPTION
     The techniques within a effect can be iterated over using
     cgGetNextTechnique.

     Note that no specific order of traversal is defined by this
     mechanism.  The only guarantee is that each technique will
     be visited exactly once.

EXAMPLES
       CGtechnique tech = cgGetFirstTechnique( effect );
       while( tech )
       {
         /* do something with tech */
         tech = cgGetNextTechnique( tech )
       }


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

HISTORY
     cgGetNextTechnique was introduced in Cg 1.4.

SEE ALSO
     cgGetFirstTechnique, cgGetNamedTechnique











Cg Toolkit 2.1            Last change:                          1



OpenSolaris man pages main menu

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