Rechercher une page de manuel
cgSetProgramProfile
Langue: en
Version: 47154 (openSuse - 09/10/07)
Section: 3 (Bibliothèques de fonctions)
NAME
cgSetProgramProfile - set a program's profileSYNOPSIS
#include <Cg/cg.h>
void cgSetProgramProfile( CGprogram program, CGprofile profile );
PARAMETERS
- program
- The program.
- profile
- The profile to be used when compiling the program.
RETURN VALUES
None.DESCRIPTION
cgSetProgramProfile allows the application to specify the profile to be used when compiling the given program. When called, the program will be unloaded if it is currently loaded, and marked as uncompiled. When the program is next compiled (see cgSetAutoCompile), the given profile will be used. cgSetProgramProfile can be used to override the profile specified in a CgFX compile statement, or to change the profile associated with a program created by a call to cgCreateProgram.EXAMPLES
to-be-writtenERRORS
CG_INVALID_PROGRAM_HANDLE_ERROR is generated if program is not a valid program handle.CG_INVALID_PROFILE_ERROR is generated if profile is not a valid profile enumerant.
HISTORY
cgSetProgramProfile was introduced in Cg 1.4.SEE ALSO
the cgGetProgramProfile manpage, the cgGetProfile manpage, the cgGetProfileString manpage, the cgCreateProgram manpage, the cgSetAutoCompile manpageContenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre