Rechercher une page de manuel
cgGetNextTechnique
Langue: en
Version: 47004 (openSuse - 09/10/07)
Section: 3 (Bibliothèques de fonctions)
NAME
cgGetNextTechnique - iterate through techniques in a effectSYNOPSIS
#include <Cg/cg.h>
CGtechnique cgGetNextTechnique( CGtechnique tech );
PARAMETERS
- tech
- The current technique.
RETURN VALUES
Returns the next technique in the effect's internal sequence of techniques.Returns NULL 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 ) }
ERRORS
CG_INVALID_TECHNIQUE_HANDLE_ERROR is generated if tech is not a valid technique.HISTORY
cgGetNextTechnique was introduced in Cg 1.4.SEE ALSO
the cgGetFirstTechnique manpage, the cgGetNamedTechnique manpageContenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre