Rechercher une page de manuel
cgGLSetDebugMode
Langue: en
Version: 46869 (openSuse - 09/10/07)
Section: 3 (Bibliothèques de fonctions)
NAME
cgGLSetDebugMode - control whether the cgGL runtime calls glGetErrorSYNOPSIS
#include <Cg/cgGL.h>
void cgGLSetDebugMode( CGbool debug );
PARAMETERS
- debug
- Flag indicating whether the library should use OpenGL error checking.
RETURN VALUES
None.DESCRIPTION
The OpenGL Cg runtime calls glGetError at various points to verify that no errors have occurred. While this is helpful during development, the resulting performance penalty may be deemed too severe. cgGLSetDebugMode allows the application to turn off the OpenGL error checking if so desired.EXAMPLES
cgGLSetDebugMode( CG_TRUE ); // Enables debug mode cgGLSetDebugMode( CG_FALSE ); // Disables debug mode
ERRORS
None.HISTORY
cgGLSetDebugMode was introduced in Cg 1.5.SEE ALSO
cgSetErrorHandler, cgGetErrorContenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre