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 / NV / texgen_reflection.py < prev    next >
Encoding:
Python Source  |  2008-12-07  |  1.3 KB  |  32 lines

  1. '''OpenGL extension NV.texgen_reflection
  2.  
  3. Overview (from the spec)
  4.     
  5.     This extension provides two new texture coordinate generation modes
  6.     that are useful texture-based lighting and environment mapping.
  7.     The reflection map mode generates texture coordinates (s,t,r)
  8.     matching the vertex's eye-space reflection vector.  The reflection
  9.     map mode is useful for environment mapping without the singularity
  10.     inherent in sphere mapping.  The normal map mode generates texture
  11.     coordinates (s,t,r) matching the vertex's transformed eye-space
  12.     normal.  The normal map mode is useful for sophisticated cube map
  13.     texturing-based diffuse lighting models.
  14.  
  15. The official definition of this extension is available here:
  16.     http://oss.sgi.com/projects/ogl-sample/registry/NV/texgen_reflection.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_NV_texgen_reflection'
  25. GL_NORMAL_MAP_NV = constant.Constant( 'GL_NORMAL_MAP_NV', 0x8511 )
  26. GL_REFLECTION_MAP_NV = constant.Constant( 'GL_REFLECTION_MAP_NV', 0x8512 )
  27.  
  28.  
  29. def glInitTexgenReflectionNV():
  30.     '''Return boolean indicating whether this extension is available'''
  31.     return extensions.hasGLExtension( EXTENSION_NAME )
  32.