Name
cgGetTechniqueName - get a technique's name
Synopsis
#include <Cg/cg.h> const char * cgGetTechniqueName( CGtechnique tech );Parameters
- tech
- The technique.
Return Values
Returns the null-terminated name string for the technique.
Returns NULL if tech is invalid.
Description
cgGetTechniqueName allows the application to retrieve the name of a technique in a Cg effect. This name can be used later to retrieve the technique from the effect using cgGetNamedTechnique.
Examples
to-be-written
Errors
CG_INVALID_TECHNIQUE_HANDLE_ERROR is generated if tech is not a valid technique.
History
cgGetTechniqueName was introduced in Cg 1.4.
See Also
cgGetNamedTechnique, cgGetFirstTechnique, cgGetNextTechnique