NAME
cgGetNamedTechnique - get an effect's technique by name
SYNOPSIS
#include <Cg/cg.h> CGtechnique cgGetNamedTechnique( CGeffect effect, const char * name );PARAMETERS
- effect
Specifies the effect to retrieve the technique from.
- name
Specifies the name of the technique to retrieve.
DESCRIPTION
The techniques of an effect can be retrieved directly by name using the cgGetNamedTechnique function. The names of the techniques in a effect can be discovered by iterating through the effect's techniques (see the "cgGetFirstTechnique" document and the "cgGetNextTechnique" document), calling cgGetTechniqueName for each one in turn.
RETURN VALUES
Returns the named technique from the effect. If the effect has no technique corresponding to name, NULL is returned.
ERRORS
CG_INVALID_EFFECT_HANDLE_ERROR is generated if effect does not refer to a valid effect.
SEE ALSO
the "cgIsTechnique" document, the "cgGetFirstTechnique" document, the "cgGetNextTechnique" document, the "cgGetTechniqueName" document