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 / HP / occlusion_test.py < prev    next >
Encoding:
Python Source  |  2008-12-07  |  871 b   |  25 lines

  1. '''OpenGL extension HP.occlusion_test
  2.  
  3. Overview (from the spec)
  4.  
  5.  
  6. The official definition of this extension is available here:
  7.     http://oss.sgi.com/projects/ogl-sample/registry/HP/occlusion_test.txt
  8.  
  9. Automatically generated by the get_gl_extensions script, do not edit!
  10. '''
  11. from OpenGL import platform, constants, constant, arrays
  12. from OpenGL import extensions
  13. from OpenGL.GL import glget
  14. import ctypes
  15. EXTENSION_NAME = 'GL_HP_occlusion_test'
  16. GL_OCCLUSION_TEST_HP = constant.Constant( 'GL_OCCLUSION_TEST_HP', 0x8165 )
  17. glget.addGLGetConstant( GL_OCCLUSION_TEST_HP, (1,) )
  18. GL_OCCLUSION_TEST_RESULT_HP = constant.Constant( 'GL_OCCLUSION_TEST_RESULT_HP', 0x8166 )
  19. glget.addGLGetConstant( GL_OCCLUSION_TEST_RESULT_HP, (1,) )
  20.  
  21.  
  22. def glInitOcclusionTestHP():
  23.     '''Return boolean indicating whether this extension is available'''
  24.     return extensions.hasGLExtension( EXTENSION_NAME )
  25.