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_minmax.py < prev    next >
Encoding:
Python Source  |  2008-12-07  |  1.6 KB  |  43 lines

  1. '''OpenGL extension EXT.blend_minmax
  2.  
  3. Overview (from the spec)
  4.     
  5.     Blending capability is extended by respecifying the entire blend
  6.     equation.  While this document defines only two new equations, the
  7.     BlendEquationEXT procedure that it defines will be used by subsequent
  8.     extensions to define additional blending equations.
  9.     
  10.     The two new equations defined by this extension produce the minimum
  11.     (or maximum) color components of the source and destination colors.
  12.     Taking the maximum is useful for applications such as maximum projection
  13.     in medical imaging.
  14.  
  15. The official definition of this extension is available here:
  16.     http://oss.sgi.com/projects/ogl-sample/registry/EXT/blend_minmax.txt
  17.  
  18. Automatically generated by the get_gl_extensions script, do not edit!
  19. '''
  20. from OpenGL import platform, constants, constant, arrays
  21. from OpenGL import extensions
  22. from OpenGL.GL import glget
  23. import ctypes
  24. EXTENSION_NAME = 'GL_EXT_blend_minmax'
  25. GL_FUNC_ADD_EXT = constant.Constant( 'GL_FUNC_ADD_EXT', 0x8006 )
  26. GL_MIN_EXT = constant.Constant( 'GL_MIN_EXT', 0x8007 )
  27. GL_MAX_EXT = constant.Constant( 'GL_MAX_EXT', 0x8008 )
  28. GL_BLEND_EQUATION_EXT = constant.Constant( 'GL_BLEND_EQUATION_EXT', 0x8009 )
  29. glget.addGLGetConstant( GL_BLEND_EQUATION_EXT, (1,) )
  30. glBlendEquationEXT = platform.createExtensionFunction( 
  31.     'glBlendEquationEXT', dll=platform.GL,
  32.     extension=EXTENSION_NAME,
  33.     resultType=None, 
  34.     argTypes=(constants.GLenum,),
  35.     doc = 'glBlendEquationEXT( GLenum(mode) ) -> None',
  36.     argNames = ('mode',),
  37. )
  38.  
  39.  
  40. def glInitBlendMinmaxEXT():
  41.     '''Return boolean indicating whether this extension is available'''
  42.     return extensions.hasGLExtension( EXTENSION_NAME )
  43.