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 / EXT / index_material.py < prev    next >
Encoding:
Python Source  |  2008-12-07  |  1.6 KB  |  41 lines

  1. '''OpenGL extension EXT.index_material
  2.  
  3. Overview (from the spec)
  4.     
  5.     This extends color index lighting to include a way for the current
  6.     index to contribute to the color index produced by lighting.  This
  7.     works much like ColorMaterial does for RGBA lighting by allowing
  8.     one or more color index material properties to be attached to the
  9.     current index.
  10.     
  11.     The color index lighting formula is also modified so that the lit
  12.     color index may be bitwise shifted in order to allow greater control
  13.     when using lighting and fog together in color index mode.
  14.  
  15. The official definition of this extension is available here:
  16.     http://oss.sgi.com/projects/ogl-sample/registry/EXT/index_material.txt
  17.  
  18. Automatically generated by the get_gl_extensions script, do not edit!
  19. '''
  20. from OpenGL import platform, constants, constant, arrays
  21. from OpenGL import extensions
  22. from OpenGL.GL import glget
  23. import ctypes
  24. EXTENSION_NAME = 'GL_EXT_index_material'
  25. GL_INDEX_MATERIAL_EXT = constant.Constant( 'GL_INDEX_MATERIAL_EXT', 0x81B8 )
  26. GL_INDEX_MATERIAL_PARAMETER_EXT = constant.Constant( 'GL_INDEX_MATERIAL_PARAMETER_EXT', 0x81B9 )
  27. GL_INDEX_MATERIAL_FACE_EXT = constant.Constant( 'GL_INDEX_MATERIAL_FACE_EXT', 0x81BA )
  28. glIndexMaterialEXT = platform.createExtensionFunction( 
  29.     'glIndexMaterialEXT', dll=platform.GL,
  30.     extension=EXTENSION_NAME,
  31.     resultType=None, 
  32.     argTypes=(constants.GLenum, constants.GLenum,),
  33.     doc = 'glIndexMaterialEXT( GLenum(face), GLenum(mode) ) -> None',
  34.     argNames = ('face', 'mode',),
  35. )
  36.  
  37.  
  38. def glInitIndexMaterialEXT():
  39.     '''Return boolean indicating whether this extension is available'''
  40.     return extensions.hasGLExtension( EXTENSION_NAME )
  41.