Rechercher une page de manuel
cgGetProfile
Langue: en
Version: 47040 (openSuse - 09/10/07)
Section: 3 (Bibliothèques de fonctions)
NAME
cgGetProfile - get the profile enumerant from a profile nameSYNOPSIS
#include <Cg/cg.h>
CGprofile cgGetProfile( const char * profile_string );
PARAMETERS
- profile_string
- A string containing the case-sensitive profile name.
RETURN VALUES
Returns the profile enumerant of profile_string.Returns CG_UNKNOWN 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 */ }
ERRORS
CG_INVALID_PARAMETER_ERROR is generated if profile_string is NULL.HISTORY
cgGetProfile was introduced in Cg 1.1.SEE ALSO
the cgGetProfileString manpage, the cgGetProgramProfile manpageContenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre