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

  1. '''OpenGL extension NV.blend_square
  2.  
  3. Overview (from the spec)
  4.     
  5.     It is useful to be able to multiply a number by itself in the blending
  6.     stages -- for example, in certain types of specular lighting effects
  7.     where a result from a dot product needs to be taken to a high power.
  8.     
  9.     This extension provides four additional blending factors to permit
  10.     this and other effects: SRC_COLOR and ONE_MINUS_SRC_COLOR for source
  11.     blending factors, and DST_COLOR and ONE_MINUS_DST_COLOR for destination
  12.     blending factors.
  13.     
  14.     Direct3D provides capability bits for advertising these additional
  15.     blend modes.
  16.  
  17. The official definition of this extension is available here:
  18.     http://oss.sgi.com/projects/ogl-sample/registry/NV/blend_square.txt
  19.  
  20. Automatically generated by the get_gl_extensions script, do not edit!
  21. '''
  22. from OpenGL import platform, constants, constant, arrays
  23. from OpenGL import extensions
  24. from OpenGL.GL import glget
  25. import ctypes
  26. EXTENSION_NAME = 'GL_NV_blend_square'
  27.  
  28.  
  29.  
  30. def glInitBlendSquareNV():
  31.     '''Return boolean indicating whether this extension is available'''
  32.     return extensions.hasGLExtension( EXTENSION_NAME )
  33.