MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


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



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™