Name
cgGetTypeString - get the type name associated with a type enumerant
Synopsis
#include <Cg/cg.h>
const char * cgGetTypeString( CGtype type );
Parameters
- type
-
The type enumerant.
Return Values
Returns the type string of the enumerant type.
Description
cgGetTypeString returns the type name associated with a type enumerant.
Examples
const char *MatrixTypeStr = cgGetTypeString(CG_FLOAT4x4);
/* MatrixTypeStr will be "float4x4" */
Errors
None.
History
cgGetTypeString was introduced in Cg 1.1.
See Also
cgGetType,
cgGetParameterType
|