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 / SUN / slice_accum.py < prev    next >
Encoding:
Python Source  |  2008-12-07  |  889 b   |  26 lines

  1. '''OpenGL extension SUN.slice_accum
  2.  
  3. Overview (from the spec)
  4.     
  5.     
  6.     This extension defines a new accumulation operation which enables the accumulation
  7.     buffer to be used for alpha compositing. This enables higher precision alpha
  8.     blending than what can be accomplished using the blend operation.
  9.  
  10. The official definition of this extension is available here:
  11.     http://oss.sgi.com/projects/ogl-sample/registry/SUN/slice_accum.txt
  12.  
  13. Automatically generated by the get_gl_extensions script, do not edit!
  14. '''
  15. from OpenGL import platform, constants, constant, arrays
  16. from OpenGL import extensions
  17. from OpenGL.GL import glget
  18. import ctypes
  19. EXTENSION_NAME = 'GL_SUN_slice_accum'
  20. GL_SLICE_ACCUM_SUN = constant.Constant( 'GL_SLICE_ACCUM_SUN', 0x85CC )
  21.  
  22.  
  23. def glInitSliceAccumSUN():
  24.     '''Return boolean indicating whether this extension is available'''
  25.     return extensions.hasGLExtension( EXTENSION_NAME )
  26.