Cg Core Runtime API cgGetProfile(3)
NAME
cgGetProfile - get the profile enumerant from a profile name
SYNOPSIS
#include
CGprofile cgGetProfile( const char * profilestring );
PARAMETERS
profilestring
A string containing the case-sensitive profile name.
RETURN VALUES
Returns the profile enumerant of profilestring.
Returns CGUNKNOWN if the given profile does not exist.
DESCRIPTION
cgGetProfile returns the enumerant assigned to a profile
name.
EXAMPLES
CGprofile ARBVP1Profile = cgGetProfile("arbvp1");
if(cgGetProgramProfile(myprog) == ARBVP1Profile)
{
/* Do stuff */
}
ERORS
CGINVALIDPARAMETEREROR is generated if profilestring is
NUL.
HISTORY
cgGetProfile was introduced in Cg 1.1.
SEE ALSO
cgGetProfileString, cgGetProgramProfile
Cg Toolkit 2.1 Last change: 1
|