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

  1. '''OpenGL extension ARB.shadow
  2.  
  3. Overview (from the spec)
  4.     
  5.     This extension clarifies the GL_SGIX_shadow extension.
  6.     
  7.     This extension supports comparing the texture R coordinate to a depth
  8.     texture value in order to produce a boolean texture value.    This can
  9.     be used to implement shadow maps.
  10.     
  11.     The extension is written in generic terms such that other texture
  12.     comparison modes can be accomodated in the future.
  13.  
  14. The official definition of this extension is available here:
  15.     http://oss.sgi.com/projects/ogl-sample/registry/ARB/shadow.txt
  16.  
  17. Automatically generated by the get_gl_extensions script, do not edit!
  18. '''
  19. from OpenGL import platform, constants, constant, arrays
  20. from OpenGL import extensions
  21. from OpenGL.GL import glget
  22. import ctypes
  23. EXTENSION_NAME = 'GL_ARB_shadow'
  24. GL_TEXTURE_COMPARE_MODE_ARB = constant.Constant( 'GL_TEXTURE_COMPARE_MODE_ARB', 0x884C )
  25. GL_TEXTURE_COMPARE_FUNC_ARB = constant.Constant( 'GL_TEXTURE_COMPARE_FUNC_ARB', 0x884D )
  26. GL_COMPARE_R_TO_TEXTURE_ARB = constant.Constant( 'GL_COMPARE_R_TO_TEXTURE_ARB', 0x884E )
  27.  
  28.  
  29. def glInitShadowARB():
  30.     '''Return boolean indicating whether this extension is available'''
  31.     return extensions.hasGLExtension( EXTENSION_NAME )
  32.