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 / S3 / s3tc.py < prev   
Encoding:
Python Source  |  2008-12-07  |  867 b   |  27 lines

  1. '''OpenGL extension S3.s3tc
  2.  
  3. Overview (from the spec)
  4.     
  5.     This extension allows specifying texture data in compressed S3TC
  6.     format.
  7.  
  8. The official definition of this extension is available here:
  9.     http://oss.sgi.com/projects/ogl-sample/registry/S3/s3tc.txt
  10.  
  11. Automatically generated by the get_gl_extensions script, do not edit!
  12. '''
  13. from OpenGL import platform, constants, constant, arrays
  14. from OpenGL import extensions
  15. from OpenGL.GL import glget
  16. import ctypes
  17. EXTENSION_NAME = 'GL_S3_s3tc'
  18. GL_RGB_S3TC = constant.Constant( 'GL_RGB_S3TC', 0x83A0 )
  19. GL_RGB4_S3TC = constant.Constant( 'GL_RGB4_S3TC', 0x83A1 )
  20. GL_RGBA_S3TC = constant.Constant( 'GL_RGBA_S3TC', 0x83A2 )
  21. GL_RGBA4_S3TC = constant.Constant( 'GL_RGBA4_S3TC', 0x83A3 )
  22.  
  23.  
  24. def glInitS3TcS3():
  25.     '''Return boolean indicating whether this extension is available'''
  26.     return extensions.hasGLExtension( EXTENSION_NAME )
  27.