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.

RETURN VALUES
    Returns the resource enumerant of resource_string. If no such resource
    exists CG_UNKNOWN will be returned.

DESCRIPTION
    cgGetResource returns the enumerant assigned to a resource name.

EXAMPLES
    The following is an example of how cgGetResource might be used.

      CGresource PositionResource = cgGetResource("POSITION");

      if(cgGetParameterResource(myparam) == PositionResource)
       {
        /* Do stuff */
       }

ERRORS
    *to-be-written*

HISTORY
    cgGetProgramString was introduced in Cg 1.1.

SEE ALSO
    the cgGetResourceString manpage, the cgGetParameterResource manpage

