Cg Core Runtime API cgGetResource(3)
NAME
cgGetResource - get the resource enumerant assigned to a
resource name
SYNOPSIS
#include
CGresource cgGetResource( const char * resourcestring );
PARAMETERS
resourcestring A string containing the resource name.
RETURN VALUES
Returns the resource enumerant of resourcestring.
Returns CGUNKNOWN if no such resource exists.
DESCRIPTION
cgGetResource returns the enumerant assigned to a resource
name.
EXAMPLES
CGresource PositionResource = cgGetResource("POSITION");
if(cgGetParameterResource(myparam) == PositionResource)
{
/* Do stuff to the "POSITION" parameter */
}
ERORS
None.
HISTORY
cgGetResource was introduced in Cg 1.1.
SEE ALSO
cgGetResourceString, cgGetParameterResource
Cg Toolkit 2.1 Last change: 1
|