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

  1. '''OpenGL extension ARB.shadow_ambient
  2.  
  3. Overview (from the spec)
  4.     
  5.     This is based on the GL_SGIX_shadow_ambient extension and is layered
  6.     upon the GL_ARB_shadow extension.
  7.     
  8.     Basically, this extension allows the user to specify the texture
  9.     value to use when the texture compare function fails.  Normally
  10.     this value is zero.  By allowing an arbitrary value we can get
  11.     functionality which otherwise requires an advanced texture
  12.     combine extension (such as GL_NV_register_combiners) and multiple
  13.     texture units.
  14.  
  15. The official definition of this extension is available here:
  16.     http://oss.sgi.com/projects/ogl-sample/registry/ARB/shadow_ambient.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_ARB_shadow_ambient'
  25. GL_TEXTURE_COMPARE_FAIL_VALUE_ARB = constant.Constant( 'GL_TEXTURE_COMPARE_FAIL_VALUE_ARB', 0x80BF )
  26.  
  27.  
  28. def glInitShadowAmbientARB():
  29.     '''Return boolean indicating whether this extension is available'''
  30.     return extensions.hasGLExtension( EXTENSION_NAME )
  31.