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 / ATI / texture_float.py < prev    next >
Encoding:
Python Source  |  2008-12-07  |  1.9 KB  |  40 lines

  1. '''OpenGL extension ATI.texture_float
  2.  
  3. Overview (from the spec)
  4.     
  5.     This extension adds texture internal formats with 32 and 16 bit
  6.     floating-point components.  The 32 bit floating-point components
  7.     are in the standard IEEE float format.  The 16 bit floating-point
  8.     components have 1 sign bit, 5 exponent bits, and 10 mantissa bits.
  9.     Floating-point components are clamped to the limits of the range
  10.     representable by their format.
  11.     
  12.  
  13. The official definition of this extension is available here:
  14.     http://oss.sgi.com/projects/ogl-sample/registry/ATI/texture_float.txt
  15.  
  16. Automatically generated by the get_gl_extensions script, do not edit!
  17. '''
  18. from OpenGL import platform, constants, constant, arrays
  19. from OpenGL import extensions
  20. from OpenGL.GL import glget
  21. import ctypes
  22. EXTENSION_NAME = 'GL_ATI_texture_float'
  23. GL_RGBA_FLOAT32_ATI = constant.Constant( 'GL_RGBA_FLOAT32_ATI', 0x8814 )
  24. GL_RGB_FLOAT32_ATI = constant.Constant( 'GL_RGB_FLOAT32_ATI', 0x8815 )
  25. GL_ALPHA_FLOAT32_ATI = constant.Constant( 'GL_ALPHA_FLOAT32_ATI', 0x8816 )
  26. GL_INTENSITY_FLOAT32_ATI = constant.Constant( 'GL_INTENSITY_FLOAT32_ATI', 0x8817 )
  27. GL_LUMINANCE_FLOAT32_ATI = constant.Constant( 'GL_LUMINANCE_FLOAT32_ATI', 0x8818 )
  28. GL_LUMINANCE_ALPHA_FLOAT32_ATI = constant.Constant( 'GL_LUMINANCE_ALPHA_FLOAT32_ATI', 0x8819 )
  29. GL_RGBA_FLOAT16_ATI = constant.Constant( 'GL_RGBA_FLOAT16_ATI', 0x881A )
  30. GL_RGB_FLOAT16_ATI = constant.Constant( 'GL_RGB_FLOAT16_ATI', 0x881B )
  31. GL_ALPHA_FLOAT16_ATI = constant.Constant( 'GL_ALPHA_FLOAT16_ATI', 0x881C )
  32. GL_INTENSITY_FLOAT16_ATI = constant.Constant( 'GL_INTENSITY_FLOAT16_ATI', 0x881D )
  33. GL_LUMINANCE_FLOAT16_ATI = constant.Constant( 'GL_LUMINANCE_FLOAT16_ATI', 0x881E )
  34. GL_LUMINANCE_ALPHA_FLOAT16_ATI = constant.Constant( 'GL_LUMINANCE_ALPHA_FLOAT16_ATI', 0x881F )
  35.  
  36.  
  37. def glInitTextureFloatATI():
  38.     '''Return boolean indicating whether this extension is available'''
  39.     return extensions.hasGLExtension( EXTENSION_NAME )
  40.