NAME

cgGetProfile - get the profile enumerant from a profile name

SYNOPSIS

  #include <Cg/cg.h>

  CGprofile cgGetProfile( const char * profile_string );

PARAMETERS

profile_string

A string containing the profile name. The name is case-sensitive.

RETURN VALUES

Returns the profile enumerant of profile_string. If no such profile exists CG_UNKNOWN will be returned.

DESCRIPTION

cgGetProfile returns the enumerant assigned to a profile name.

EXAMPLES

The following is an example of how cgGetProfile might be used.

  CGprofile ARBVP1Profile = cgGetProfile("arbvp1");

  if(cgGetProgramProfile(myprog) == ARBVP1Profile)
   {
    /* Do stuff */
   }

ERRORS

to-be-written

HISTORY

cgGetProfile was introduced in Cg 1.1.

SEE ALSO

cgGetProfileString, cgGetProgramProfile