MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Cg OpenGL Runtime API                         cgGLSetDebugMode(3)



NAME
     cgGLSetDebugode - control whether the cgGL runtime calls
     glGetError

SYNOPSIS
       #include 

       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.  cgGLSetDebugode allows the application
     to turn off the OpenGL error checking if so desired.

EXAMPLES
       cgGLSetDebugMode( CGTRUE );  / Enables debug mode
       cgGLSetDebugMode( CGFALSE ); / Disables debug mode


ERORS
     None.

HISTORY
     cgGLSetDebugode was introduced in Cg 1.5.

SEE ALSO
     cgSetErrorHandler, cgGetError


















Cg Toolkit 2.1            Last change:                          1



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™