NAME
cgGetEnumString - get the name string associated with an enumerant
SYNOPSIS
#include <Cg/cg.h> const char *cgGetEnumString(CGenum en);PARAMETERS
- en
The enumerant.
DESCRIPTION
cgGetEnumString returns the name string associated with an enumerant enumerant. It's primarily useful for printing out debugging information.
EXAMPLE
The following example will print "CG_UNIFORM" to the stdout.
const char *EnumString = cgGetEnumString(CG_UNIFORM); printf("%s\n", EnumString);RETURN VALUES
Returns the enum string of the enumerant enum. NULL is returned in the event of an error.
ERRORS
This function generates no errors.
SEE ALSO