Cg Core Runtime API cgGetType(3)
NAME
cgGetType - get the type enumerant assigned to a type name
SYNOPSIS
#include
CGtype cgGetType( const char * typestring );
PARAMETERS
typestring
A string containing the case-sensitive type name.
RETURN VALUES
Returns the type enumerant of typestring.
Returns CGUNKNOWNTYPE if no such type exists.
DESCRIPTION
cgGetType returns the enumerant assigned to a type name.
EXAMPLES
CGtype Float4Type = cgGetType("float4");
if(cgGetParameterType(myparam) == Float4Type)
{
/* Do stuff */
}
ERORS
None.
HISTORY
cgGetType was introduced in Cg 1.1.
SEE ALSO
cgGetTypeString, cgGetParameterType
Cg Toolkit 2.1 Last change: 1
|