Cg Core Runtime API cgGetTypeString(3)
NAME
cgGetTypeString - get the type name associated with a type
enumerant
SYNOPSIS
#include
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 named associated with a
type enumerant.
EXAMPLES
const char *MatrixTypeStr = cgGetTypeString(CGFLOAT4x4);
/* MatrixTypeStr will be "float4x4" */
ERORS
None.
HISTORY
cgGetTypeString was introduced in Cg 1.1.
SEE ALSO
cgGetType, cgGetParameterType
Cg Toolkit 2.1 Last change: 1
|