NAME
cgGetType - get the type enumerant assigned to a type name
SYNOPSIS
#include <Cg/cg.h> CGtype cgGetType( const char *type_string );PARAMETERS
- type_string
A string containing the type name. The name is case-sensitive.
DESCRIPTION
cgGetType returns the enumerant assigned to a type name.
The following is an example of how cgGetType might be used.
CGtype Float4Type = cgGetType("float4"); if(cgGetParameterType(myparam) == Float4Type) { /* Do stuff */ }RETURN VALUES
Returns the type enumerant of type_string. If no such type exists CG_UNKNOWN_TYPE will be returned.
ERRORS
SEE ALSO
the "cgGetTypeString" document, the "cgGetParameterType" document