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.
RETURN VALUES
Returns the type enumerant of type_string. If no such type exists CG_UNKNOWN_TYPE will be returned.
DESCRIPTION
cgGetType returns the enumerant assigned to a type name.
EXAMPLES
The following is an example of how cgGetType might be used.
CGtype Float4Type = cgGetType("float4"); if(cgGetParameterType(myparam) == Float4Type) { /* Do stuff */ }ERRORS
to-be-written
HISTORY
cgGetType was introduced in Cg 1.1.
SEE ALSO