NAME

cgGetTechniqueName - get a technique's name

SYNOPSIS

  #include <Cg/cg.h>

  const char * cgGetTechniqueName( CGtechnique tech );

PARAMETERS

tech

Specifies the technique.

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 cgGetTechniqueByName.

RETURN VALUES

Returns the null-terminated name string for the technique.

Returns null if tech is invalid.

ERRORS

CG_INVALID_TECHNIQUE_HANDLE_ERROR is generated if tech does not refer to a valid technique.

SEE ALSO

the "cgGetNamedTechnique" document, the "cgGetFirst" document, and the "cgGetNextTechnique" document,