home *** CD-ROM | disk | FTP | other *** search
/ Hackers Magazine 57 / CdHackersMagazineNr57.iso / Software / Multimedia / k3d-setup-0.7.11.0.exe / lib / site-packages / OpenGL / raw / GL / NV / conditional_render.py < prev    next >
Encoding:
Python Source  |  2008-12-07  |  1.4 KB  |  39 lines

  1. '''OpenGL extension NV.conditional_render
  2.  
  3. The official definition of this extension is available here:
  4.     http://oss.sgi.com/projects/ogl-sample/registry/NV/conditional_render.txt
  5.  
  6. Automatically generated by the get_gl_extensions script, do not edit!
  7. '''
  8. from OpenGL import platform, constants, constant, arrays
  9. from OpenGL import extensions
  10. from OpenGL.GL import glget
  11. import ctypes
  12. EXTENSION_NAME = 'GL_NV_conditional_render'
  13. GL_QUERY_WAIT_NV = constant.Constant( 'GL_QUERY_WAIT_NV', 0x8E13 )
  14. GL_QUERY_NO_WAIT_NV = constant.Constant( 'GL_QUERY_NO_WAIT_NV', 0x8E14 )
  15. GL_QUERY_BY_REGION_WAIT_NV = constant.Constant( 'GL_QUERY_BY_REGION_WAIT_NV', 0x8E15 )
  16. GL_QUERY_BY_REGION_NO_WAIT_NV = constant.Constant( 'GL_QUERY_BY_REGION_NO_WAIT_NV', 0x8E16 )
  17. glBeginConditionalRenderNV = platform.createExtensionFunction( 
  18.     'glBeginConditionalRenderNV', dll=platform.GL,
  19.     extension=EXTENSION_NAME,
  20.     resultType=None, 
  21.     argTypes=(constants.GLuint, constants.GLenum,),
  22.     doc = 'glBeginConditionalRenderNV( GLuint(id), GLenum(mode) ) -> None',
  23.     argNames = ('id', 'mode',),
  24. )
  25.  
  26. glEndConditionalRenderNV = platform.createExtensionFunction( 
  27.     'glEndConditionalRenderNV', dll=platform.GL,
  28.     extension=EXTENSION_NAME,
  29.     resultType=None, 
  30.     argTypes=(),
  31.     doc = 'glEndConditionalRenderNV(  ) -> None',
  32.     argNames = (),
  33. )
  34.  
  35.  
  36. def glInitConditionalRenderNV():
  37.     '''Return boolean indicating whether this extension is available'''
  38.     return extensions.hasGLExtension( EXTENSION_NAME )
  39.