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 / ATI / separate_stencil.py < prev    next >
Encoding:
Python Source  |  2008-12-07  |  1.9 KB  |  45 lines

  1. '''OpenGL extension ATI.separate_stencil
  2.  
  3. Overview (from the spec)
  4.     
  5.     This extension provides the ability to modify the stencil buffer
  6.     differently based on the facing direction of the primitive that
  7.     generated the fragment.
  8.  
  9. The official definition of this extension is available here:
  10.     http://oss.sgi.com/projects/ogl-sample/registry/ATI/separate_stencil.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_ATI_separate_stencil'
  19. GL_STENCIL_BACK_FUNC_ATI = constant.Constant( 'GL_STENCIL_BACK_FUNC_ATI', 0x8800 )
  20. GL_STENCIL_BACK_FAIL_ATI = constant.Constant( 'GL_STENCIL_BACK_FAIL_ATI', 0x8801 )
  21. GL_STENCIL_BACK_PASS_DEPTH_FAIL_ATI = constant.Constant( 'GL_STENCIL_BACK_PASS_DEPTH_FAIL_ATI', 0x8802 )
  22. GL_STENCIL_BACK_PASS_DEPTH_PASS_ATI = constant.Constant( 'GL_STENCIL_BACK_PASS_DEPTH_PASS_ATI', 0x8803 )
  23. glStencilOpSeparateATI = platform.createExtensionFunction( 
  24.     'glStencilOpSeparateATI', dll=platform.GL,
  25.     extension=EXTENSION_NAME,
  26.     resultType=None, 
  27.     argTypes=(constants.GLenum, constants.GLenum, constants.GLenum, constants.GLenum,),
  28.     doc = 'glStencilOpSeparateATI( GLenum(face), GLenum(sfail), GLenum(dpfail), GLenum(dppass) ) -> None',
  29.     argNames = ('face', 'sfail', 'dpfail', 'dppass',),
  30. )
  31.  
  32. glStencilFuncSeparateATI = platform.createExtensionFunction( 
  33.     'glStencilFuncSeparateATI', dll=platform.GL,
  34.     extension=EXTENSION_NAME,
  35.     resultType=None, 
  36.     argTypes=(constants.GLenum, constants.GLenum, constants.GLint, constants.GLuint,),
  37.     doc = 'glStencilFuncSeparateATI( GLenum(frontfunc), GLenum(backfunc), GLint(ref), GLuint(mask) ) -> None',
  38.     argNames = ('frontfunc', 'backfunc', 'ref', 'mask',),
  39. )
  40.  
  41.  
  42. def glInitSeparateStencilATI():
  43.     '''Return boolean indicating whether this extension is available'''
  44.     return extensions.hasGLExtension( EXTENSION_NAME )
  45.