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 / DFX / tbuffer.py < prev    next >
Encoding:
Python Source  |  2008-12-07  |  1017 b   |  33 lines

  1. '''OpenGL extension DFX.tbuffer
  2.  
  3. Overview (from the spec)
  4.     
  5.     This extension allows a write mask to be defined for the fragment
  6.     mask which is created during multisample rendering. This can be used
  7.     to create effects such as motion blur and depth of field.
  8.  
  9. The official definition of this extension is available here:
  10.     http://oss.sgi.com/projects/ogl-sample/registry/DFX/tbuffer.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_DFX_tbuffer'
  19.  
  20. glTbufferMask3DFX = platform.createExtensionFunction( 
  21.     'glTbufferMask3DFX', dll=platform.GL,
  22.     extension=EXTENSION_NAME,
  23.     resultType=None, 
  24.     argTypes=(constants.GLuint,),
  25.     doc = 'glTbufferMask3DFX( GLuint(mask) ) -> None',
  26.     argNames = ('mask',),
  27. )
  28.  
  29.  
  30. def glInitTbufferDFX():
  31.     '''Return boolean indicating whether this extension is available'''
  32.     return extensions.hasGLExtension( EXTENSION_NAME )
  33.