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 / SGIX / shadow_ambient.py < prev    next >
Encoding:
Python Source  |  2008-12-07  |  1.1 KB  |  29 lines

  1. '''OpenGL extension SGIX.shadow_ambient
  2.  
  3. Overview (from the spec)
  4.     
  5.     This extension allows a value other than 0.0 to be returned by the
  6.     SGIX_shadow operation in the case when the shadow test passes.
  7.     With this extension any floating point value in the range [0.0,
  8.     1.0] can be returned as the texture value when an object is in
  9.     shadow.  This allows the (untextured) ambient lighting and direct
  10.     shadowed lighting from a single light source to be computed in a
  11.     single pass.
  12.  
  13. The official definition of this extension is available here:
  14.     http://oss.sgi.com/projects/ogl-sample/registry/SGIX/shadow_ambient.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_SGIX_shadow_ambient'
  23. GL_SHADOW_AMBIENT_SGIX = constant.Constant( 'GL_SHADOW_AMBIENT_SGIX', 0x80BF )
  24.  
  25.  
  26. def glInitShadowAmbientSGIX():
  27.     '''Return boolean indicating whether this extension is available'''
  28.     return extensions.hasGLExtension( EXTENSION_NAME )
  29.