NAME
cgGetResource - get the resource enumerant assigned to a resource name
SYNOPSIS
#include <Cg/cg.h> CGresource cgGetResource( const char *resource_string );PARAMETERS
- resource_string
A string containing the resource name.
DESCRIPTION
cgGetResource returns the enumerant assigned to a resource name.
The following is an example of how cgGetResource might be used.
CGresource PositionResource = cgGetResource("POSITION"); if(cgGetParameterResource(myparam) == PositionResource) { /* Do stuff */ }RETURN VALUES
Returns the resource enumerant of resource_string. If no such resource exists CG_UNKNOWN will be returned.
ERRORS
SEE ALSO
the "cgGetResourceString" document, the "cgGetParameterResource" document