Name
cgGetResourceString - get the resource name associated with a resource enumerant
Synopsis
#include <Cg/cg.h>
const char * cgGetResourceString( CGresource resource );
Parameters
- resource
-
The resource enumerant.
Return Values
Returns the null-terminated resource string of the enumerant resource.
Description
cgGetResourceString returns the resource name associated with
a resource enumerant.
Examples
/* log info about parameter param for debugging */
printf("Resource: %s:%d (base %s)\n",
cgGetResourceString(cgGetParameterResource(param)),
cgGetParameterResourceIndex(param),
cgGetResourceString(cgGetParameterBaseResource(param)));
Errors
None.
History
cgGetResourceString was introduced in Cg 1.1.
See Also
cgGetResource,
cgGetParameterResource
|