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 / blend_subtract.py < prev    next >
Encoding:
Python Source  |  2008-12-07  |  1.1 KB  |  28 lines

  1. '''OpenGL extension EXT.blend_subtract
  2.  
  3. Overview (from the spec)
  4.     
  5.     Two additional blending equations are specified using the interface
  6.     defined by EXT_blend_minmax.  These equations are similar to the
  7.     default blending equation, but produce the difference of its left
  8.     and right hand sides, rather than the sum.  Image differences are
  9.     useful in many image processing applications.
  10.  
  11. The official definition of this extension is available here:
  12.     http://oss.sgi.com/projects/ogl-sample/registry/EXT/blend_subtract.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_EXT_blend_subtract'
  21. GL_FUNC_SUBTRACT_EXT = constant.Constant( 'GL_FUNC_SUBTRACT_EXT', 0x800A )
  22. GL_FUNC_REVERSE_SUBTRACT_EXT = constant.Constant( 'GL_FUNC_REVERSE_SUBTRACT_EXT', 0x800B )
  23.  
  24.  
  25. def glInitBlendSubtractEXT():
  26.     '''Return boolean indicating whether this extension is available'''
  27.     return extensions.hasGLExtension( EXTENSION_NAME )
  28.