Cg Core Runtime API cgGetNamedTechnique(3)
NAME
cgGetNamedTechnique - get an effect's technique by name
SYNOPSIS
#include
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 NUL 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 cgGetFirstTechnique and
cgGetNextTechnique), calling cgGetTechniqueName for each one
in turn.
EXAMPLES
to-be-written
ERORS
CGINVALIDEFECTHANDLEROR is generated if effect is not
a valid effect.
HISTORY
cgGetNamedTechnique was introduced in Cg 1.4.
SEE ALSO
cgGetFirstTechnique, cgGetNextTechnique, cgGetTechniqueName
Cg Toolkit 2.1 Last change: 1
|