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 / SGIX / subsample.py < prev    next >
Encoding:
Python Source  |  2008-12-07  |  1011 b   |  23 lines

  1. '''OpenGL extension SGIX.subsample
  2.  
  3. The official definition of this extension is available here:
  4.     http://oss.sgi.com/projects/ogl-sample/registry/SGIX/subsample.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_SGIX_subsample'
  13. GL_PACK_SUBSAMPLE_RATE_SGIX = constant.Constant( 'GL_PACK_SUBSAMPLE_RATE_SGIX', 0x85A0 )
  14. GL_UNPACK_SUBSAMPLE_RATE_SGIX = constant.Constant( 'GL_UNPACK_SUBSAMPLE_RATE_SGIX', 0x85A1 )
  15. GL_PIXEL_SUBSAMPLE_4444_SGIX = constant.Constant( 'GL_PIXEL_SUBSAMPLE_4444_SGIX', 0x85A2 )
  16. GL_PIXEL_SUBSAMPLE_2424_SGIX = constant.Constant( 'GL_PIXEL_SUBSAMPLE_2424_SGIX', 0x85A3 )
  17. GL_PIXEL_SUBSAMPLE_4242_SGIX = constant.Constant( 'GL_PIXEL_SUBSAMPLE_4242_SGIX', 0x85A4 )
  18.  
  19.  
  20. def glInitSubsampleSGIX():
  21.     '''Return boolean indicating whether this extension is available'''
  22.     return extensions.hasGLExtension( EXTENSION_NAME )
  23.