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 / SUNX / constant_data.py < prev   
Encoding:
Python Source  |  2008-12-07  |  1.3 KB  |  37 lines

  1. '''OpenGL extension SUNX.constant_data
  2.  
  3. Overview (from the spec)
  4.     
  5.     This extension allows the pixel data specified by the
  6.     application to be used internally without making a second copy.
  7.     This extension affects how the pixel data in client memory is
  8.     interpreted and therefore affects DrawPixels, Bitmap,
  9.     PolygonStipple, TexImage1D, TexImage2D, TexImage3DEXT,
  10.     ColorTableSGI.
  11.  
  12. The official definition of this extension is available here:
  13.     http://oss.sgi.com/projects/ogl-sample/registry/SUNX/constant_data.txt
  14.  
  15. Automatically generated by the get_gl_extensions script, do not edit!
  16. '''
  17. from OpenGL import platform, constants, constant, arrays
  18. from OpenGL import extensions
  19. from OpenGL.GL import glget
  20. import ctypes
  21. EXTENSION_NAME = 'GL_SUNX_constant_data'
  22. GL_UNPACK_CONSTANT_DATA_SUNX = constant.Constant( 'GL_UNPACK_CONSTANT_DATA_SUNX', 0x81D5 )
  23. GL_TEXTURE_CONSTANT_DATA_SUNX = constant.Constant( 'GL_TEXTURE_CONSTANT_DATA_SUNX', 0x81D6 )
  24. glFinishTextureSUNX = platform.createExtensionFunction( 
  25.     'glFinishTextureSUNX', dll=platform.GL,
  26.     extension=EXTENSION_NAME,
  27.     resultType=None, 
  28.     argTypes=(),
  29.     doc = 'glFinishTextureSUNX(  ) -> None',
  30.     argNames = (),
  31. )
  32.  
  33.  
  34. def glInitConstantDataSUNX():
  35.     '''Return boolean indicating whether this extension is available'''
  36.     return extensions.hasGLExtension( EXTENSION_NAME )
  37.