cgGetTypeClass(3)

NAME
cgGetTypeClass - get the parameter class associated with a type enumerant

SYNOPSIS
  #include <Cg/cg.h>
  CGparameterclass cgGetTypeClass( CGtype type );

PARAMETERS
The type enumerant.

RETURN VALUES
Returns the parameter class of the enumerant type. Possible return values are:

DESCRIPTION
cgGetTypeClass returns the parameter class associated with a type enumerant. For example, cgGetTypeClass(CG_FLOAT3x4) returns CG_PARAMETERCLASS_MATRIX while cgGetTypeClass(CG_HALF) returns CG_PARAMETERCLASS_SCALAR and cgGetTypeClass(CG_BOOL3) returns CG_PARAMETERCLASS_VECTOR.

CG_PARAMETERCLASS_UNKNOWN is returned if the type is unknown.

EXAMPLES
to-be-written

ERRORS
None

HISTORY
cgGetTypeClass was introduced in Cg 1.5.

SEE ALSO
cgGetType, cgGetTypeBase, cgGetParameterType