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

  1. '''OpenGL extension SGIX.shadow
  2.  
  3. Overview (from the spec)
  4.     
  5.     This extension defines two new operations to be performed on texture
  6.     values before they are passed on to the filtering subsystem.  These
  7.     operations perform either a <= or >= test on the value from texture
  8.     memory and the iterated R value, and return 1.0 or 0.0 if the test
  9.     passes or fails, respectively.
  10.  
  11. The official definition of this extension is available here:
  12.     http://oss.sgi.com/projects/ogl-sample/registry/SGIX/shadow.txt
  13.  
  14. Automatically generated by the get_gl_extensions script, do not edit!
  15. '''
  16. from OpenGL import platform, constants, constant, arrays
  17. from OpenGL import extensions
  18. from OpenGL.GL import glget
  19. import ctypes
  20. EXTENSION_NAME = 'GL_SGIX_shadow'
  21. GL_TEXTURE_COMPARE_SGIX = constant.Constant( 'GL_TEXTURE_COMPARE_SGIX', 0x819A )
  22. GL_TEXTURE_COMPARE_OPERATOR_SGIX = constant.Constant( 'GL_TEXTURE_COMPARE_OPERATOR_SGIX', 0x819B )
  23. GL_TEXTURE_LEQUAL_R_SGIX = constant.Constant( 'GL_TEXTURE_LEQUAL_R_SGIX', 0x819C )
  24. GL_TEXTURE_GEQUAL_R_SGIX = constant.Constant( 'GL_TEXTURE_GEQUAL_R_SGIX', 0x819D )
  25.  
  26.  
  27. def glInitShadowSGIX():
  28.     '''Return boolean indicating whether this extension is available'''
  29.     return extensions.hasGLExtension( EXTENSION_NAME )
  30.