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 / HP / texture_lighting.py < prev   
Encoding:
Python Source  |  2008-12-07  |  1.0 KB  |  27 lines

  1. '''OpenGL extension HP.texture_lighting
  2.  
  3. Overview (from the spec)
  4.     
  5.     This extension defines a mechanism for applications to request
  6.     that color originating from specular lighting be added to
  7.     the fragment color _after_ texture application.
  8.  
  9. The official definition of this extension is available here:
  10.     http://oss.sgi.com/projects/ogl-sample/registry/HP/texture_lighting.txt
  11.  
  12. Automatically generated by the get_gl_extensions script, do not edit!
  13. '''
  14. from OpenGL import platform, constants, constant, arrays
  15. from OpenGL import extensions
  16. from OpenGL.GL import glget
  17. import ctypes
  18. EXTENSION_NAME = 'GL_HP_texture_lighting'
  19. GL_TEXTURE_LIGHTING_MODE_HP = constant.Constant( 'GL_TEXTURE_LIGHTING_MODE_HP', 0x8167 )
  20. GL_TEXTURE_POST_SPECULAR_HP = constant.Constant( 'GL_TEXTURE_POST_SPECULAR_HP', 0x8168 )
  21. GL_TEXTURE_PRE_SPECULAR_HP = constant.Constant( 'GL_TEXTURE_PRE_SPECULAR_HP', 0x8169 )
  22.  
  23.  
  24. def glInitTextureLightingHP():
  25.     '''Return boolean indicating whether this extension is available'''
  26.     return extensions.hasGLExtension( EXTENSION_NAME )
  27.