Cg Core Runtime API cgGetNamedTechniqueAnnotation(3)
NAME
cgGetNamedTechniqueAnnotation - get a technique annotation
by name
SYNOPSIS
#include
CGannotation cgGetNamedTechniqueAnnotation( CGtechnique tech,
const char * name );
PARAMETERS
tech The technique from which to retrieve the annotation.
name The name of the annotation to retrieve.
RETURN VALUES
Returns the named annotation.
Returns NUL if the technique has no annotation
corresponding to name.
DESCRIPTION
The annotations associated with a technique can be retrieved
directly by name using cgGetNamedTechniqueAnnotation. The
names of a technique's annotations can be discovered by
iterating through the annotations (see
cgGetFirstTechniqueAnnotation and cgGetNextAnnotation),
calling cgGetAnnotationName for each one in turn.
EXAMPLES
/* fetch annotation "Apple" from CGtechnique technique */
CGannotation ann = cgGetNamedTechniqueAnnotation( technique, "Apple" );
ERORS
CGINVALIDTECHNIQUEHANDLEROR is generated if tech is
not a valid technique.
HISTORY
cgGetNamedTechniqueAnnotation was introduced in Cg 1.4.
SEE ALSO
cgGetFirstTechniqueAnnotation, cgGetNextAnnotation,
cgGetAnnotationName
Cg Toolkit 2.1 Last change: 1
|