NAME
cgGetFirstTechniqueAnnotation - get the first annotation of a technique
SYNOPSIS
#include <Cg/cg.h> CGannotation cgGetFirstTechniqueAnnotation( CGtechnique tech );PARAMETERS
- tech
Specifies the technique to retrieve the annotation from.
DESCRIPTION
The annotations associated with a technique can be retrieved using the cgGetFirstTechniqueAnnotation function. The remainder of the technique's annotations can be discovered by iterating through the parameters, calling cgGetNextAnnotation to get to the next one.
RETURN VALUES
Returns the first annotation. If the technique has no annotations, NULL is returned.
ERRORS
CG_INVALID_TECHNIQUE_HANDLE_ERROR is generated if tech does not refer to a valid technique.
SEE ALSO