Cg Core Runtime API cgGetEnum(3)
NAME
cgGetEnum - get the enumerant assigned with the given string
name
SYNOPSIS
#include
CGenum cgGetEnum( const char * enumstring );
PARAMETERS
enumstring
A string containing the case-sensitive enum name.
RETURN VALUES
Returns the enumerant for enumstring.
Returns CGUNKNOWN if no such enumerant exists
DESCRIPTION
cgGetEnum returns the enumerant assigned to an enum name.
EXAMPLES
CGenum VaryingEnum = cgGetEnum("CGVARYING");
ERORS
CGINVALIDPARAMETEREROR is generated if enumstring is
NUL.
HISTORY
cgGetEnum was introduced in Cg 1.2.
SEE ALSO
cgGetEnumString
Cg Toolkit 2.1 Last change: 1
|