Rechercher une page de manuel
cgIsProgram
Langue: en
Version: 47088 (openSuse - 09/10/07)
Section: 3 (Bibliothèques de fonctions)
NAME
cgIsProgram - determine if a program handle references a program objectSYNOPSIS
#include <Cg/cg.h>
CGbool cgIsProgram( CGprogram program );
PARAMETERS
- program
- The program handle to check.
RETURN VALUES
Returns CG_TRUE if program references a valid program object.Returns CG_FALSE otherwise.
DESCRIPTION
cgIsProgram return CG_TRUE if program references a valid program object. Note that this does not imply that the program has been successfully compiled.EXAMPLES
char *programSource = ...; CGcontext context = cgCreateContext(); CGprogram program = cgCreateProgram( context, CG_SOURCE, programSource, CG_PROFILE_ARBVP1, "myshader", NULL ); CGbool isProgram = cgIsProgram( program );
ERRORS
None.HISTORY
cgIsProgram was introduced in Cg 1.1.SEE ALSO
the cgCreateProgram manpage, the cgDestroyProgram manpage, the cgGetNextProgram manpageContenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre