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 / EXT / index_func.py < prev    next >
Encoding:
Python Source  |  2008-12-07  |  1.3 KB  |  35 lines

  1. '''OpenGL extension EXT.index_func
  2.  
  3. Overview (from the spec)
  4.     
  5.     This extension provides a way to discard fragments when a comparison
  6.     between the fragment's index value and a reference index fails.  This
  7.     may be used similarly to the alpha test which is available in RGBA mode.
  8.  
  9. The official definition of this extension is available here:
  10.     http://oss.sgi.com/projects/ogl-sample/registry/EXT/index_func.txt
  11.  
  12. Automatically generated by the get_gl_extensions script, do not edit!
  13. '''
  14. from OpenGL import platform, constants, constant, arrays
  15. from OpenGL import extensions
  16. from OpenGL.GL import glget
  17. import ctypes
  18. EXTENSION_NAME = 'GL_EXT_index_func'
  19. GL_INDEX_TEST_EXT = constant.Constant( 'GL_INDEX_TEST_EXT', 0x81B5 )
  20. GL_INDEX_TEST_FUNC_EXT = constant.Constant( 'GL_INDEX_TEST_FUNC_EXT', 0x81B6 )
  21. GL_INDEX_TEST_REF_EXT = constant.Constant( 'GL_INDEX_TEST_REF_EXT', 0x81B7 )
  22. glIndexFuncEXT = platform.createExtensionFunction( 
  23.     'glIndexFuncEXT', dll=platform.GL,
  24.     extension=EXTENSION_NAME,
  25.     resultType=None, 
  26.     argTypes=(constants.GLenum, constants.GLclampf,),
  27.     doc = 'glIndexFuncEXT( GLenum(func), GLclampf(ref) ) -> None',
  28.     argNames = ('func', 'ref',),
  29. )
  30.  
  31.  
  32. def glInitIndexFuncEXT():
  33.     '''Return boolean indicating whether this extension is available'''
  34.     return extensions.hasGLExtension( EXTENSION_NAME )
  35.