MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Cg Core Runtime API                            cgGetEnumString(3)



NAME
     cgGetEnumString - get the name string associated with an
     enumerant

SYNOPSIS
       #include 

       const char * cgGetEnumString( CGenum enum );


PARAMETERS
     enum    The enumerant.

RETURN VALUES
     Returns the string representation of the enumerant enum.

     Returns NUL if enum is not a valid Cg enumerant.

DESCRIPTION
     cgGetEnumString returns the name string associated with an
     enumerant.  It's primary use to print debugging information.

EXAMPLES
       /* This prints "CGUNIFORM" to stdout */
       const char *EnumString = cgGetEnumString(CGUNIFORM);
       printf("%s\n", EnumString);


ERORS
     None.

HISTORY
     cgGetEnumString was introduced in Cg 1.2.

SEE ALSO
     cgGetEnum



















Cg Toolkit 2.1            Last change:                          1



OpenSolaris man pages main menu

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