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 / ARB / texture_float.py < prev    next >
Encoding:
Python Source  |  2008-12-07  |  2.4 KB  |  48 lines

  1. '''OpenGL extension ARB.texture_float
  2.  
  3. Overview (from the spec)
  4.     
  5.     This extension adds texture internal formats with 16- and 32-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/ARB/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_ARB_texture_float'
  23. GL_TEXTURE_RED_TYPE_ARB = constant.Constant( 'GL_TEXTURE_RED_TYPE_ARB', 0x8C10 )
  24. GL_TEXTURE_GREEN_TYPE_ARB = constant.Constant( 'GL_TEXTURE_GREEN_TYPE_ARB', 0x8C11 )
  25. GL_TEXTURE_BLUE_TYPE_ARB = constant.Constant( 'GL_TEXTURE_BLUE_TYPE_ARB', 0x8C12 )
  26. GL_TEXTURE_ALPHA_TYPE_ARB = constant.Constant( 'GL_TEXTURE_ALPHA_TYPE_ARB', 0x8C13 )
  27. GL_TEXTURE_LUMINANCE_TYPE_ARB = constant.Constant( 'GL_TEXTURE_LUMINANCE_TYPE_ARB', 0x8C14 )
  28. GL_TEXTURE_INTENSITY_TYPE_ARB = constant.Constant( 'GL_TEXTURE_INTENSITY_TYPE_ARB', 0x8C15 )
  29. GL_TEXTURE_DEPTH_TYPE_ARB = constant.Constant( 'GL_TEXTURE_DEPTH_TYPE_ARB', 0x8C16 )
  30. GL_UNSIGNED_NORMALIZED_ARB = constant.Constant( 'GL_UNSIGNED_NORMALIZED_ARB', 0x8C17 )
  31. GL_RGBA32F_ARB = constant.Constant( 'GL_RGBA32F_ARB', 0x8814 )
  32. GL_RGB32F_ARB = constant.Constant( 'GL_RGB32F_ARB', 0x8815 )
  33. GL_ALPHA32F_ARB = constant.Constant( 'GL_ALPHA32F_ARB', 0x8816 )
  34. GL_INTENSITY32F_ARB = constant.Constant( 'GL_INTENSITY32F_ARB', 0x8817 )
  35. GL_LUMINANCE32F_ARB = constant.Constant( 'GL_LUMINANCE32F_ARB', 0x8818 )
  36. GL_LUMINANCE_ALPHA32F_ARB = constant.Constant( 'GL_LUMINANCE_ALPHA32F_ARB', 0x8819 )
  37. GL_RGBA16F_ARB = constant.Constant( 'GL_RGBA16F_ARB', 0x881A )
  38. GL_RGB16F_ARB = constant.Constant( 'GL_RGB16F_ARB', 0x881B )
  39. GL_ALPHA16F_ARB = constant.Constant( 'GL_ALPHA16F_ARB', 0x881C )
  40. GL_INTENSITY16F_ARB = constant.Constant( 'GL_INTENSITY16F_ARB', 0x881D )
  41. GL_LUMINANCE16F_ARB = constant.Constant( 'GL_LUMINANCE16F_ARB', 0x881E )
  42. GL_LUMINANCE_ALPHA16F_ARB = constant.Constant( 'GL_LUMINANCE_ALPHA16F_ARB', 0x881F )
  43.  
  44.  
  45. def glInitTextureFloatARB():
  46.     '''Return boolean indicating whether this extension is available'''
  47.     return extensions.hasGLExtension( EXTENSION_NAME )
  48.