Rechercher une page de manuel
cgGetNamedTechnique
Langue: en
Version: 46993 (openSuse - 09/10/07)
Section: 3 (Bibliothèques de fonctions)
NAME
cgGetNamedTechnique - get an effect's technique by nameSYNOPSIS
#include <Cg/cg.h>
CGtechnique cgGetNamedTechnique( CGeffect effect, const char * name );
PARAMETERS
- effect
- The effect from which to retrieve the technique.
- name
- The name of the technique to retrieve.
RETURN VALUES
Returns the named technique from the effect.Returns NULL if the effect has no technique corresponding to name.
DESCRIPTION
The techniques of an effect can be retrieved directly by name using cgGetNamedTechnique. The names of the techniques in a effect can be discovered by iterating through the effect's techniques (see the cgGetFirstTechnique manpage and the cgGetNextTechnique manpage), calling the cgGetTechniqueName manpage for each one in turn.EXAMPLES
to-be-writtenERRORS
CG_INVALID_EFFECT_HANDLE_ERROR is generated if effect is not a valid effect.HISTORY
cgGetNamedTechnique was introduced in Cg 1.4.SEE ALSO
the cgGetFirstTechnique manpage, the cgGetNextTechnique manpage, the cgGetTechniqueName manpageContenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre