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 / SGIS / fog_function.py < prev    next >
Encoding:
Python Source  |  2008-12-07  |  1.7 KB  |  48 lines

  1. '''OpenGL extension SGIS.fog_function
  2.  
  3. Overview (from the spec)
  4.     
  5.     This extension allows to define application-specific fog blend-factor
  6.     function.  Function is defined by the set of the "control" points and
  7.     should be monotonic. Each control point represented as a pair of the
  8.     eye-space distance value and corresponding value of the fog blending 
  9.     factor. The minimum number of control points is one. The maximum 
  10.     number is implementation dependent.
  11.     
  12.  
  13. The official definition of this extension is available here:
  14.     http://oss.sgi.com/projects/ogl-sample/registry/SGIS/fog_function.txt
  15.  
  16. Automatically generated by the get_gl_extensions script, do not edit!
  17. '''
  18. from OpenGL import platform, constants, constant, arrays
  19. from OpenGL import extensions
  20. from OpenGL.GL import glget
  21. import ctypes
  22. EXTENSION_NAME = 'GL_SGIS_fog_function'
  23. GL_FOG_FUNC_SGIS = constant.Constant( 'GL_FOG_FUNC_SGIS', 0x812A )
  24. GL_FOG_FUNC_POINTS_SGIS = constant.Constant( 'GL_FOG_FUNC_POINTS_SGIS', 0x812B )
  25. GL_MAX_FOG_FUNC_POINTS_SGIS = constant.Constant( 'GL_MAX_FOG_FUNC_POINTS_SGIS', 0x812C )
  26. glFogFuncSGIS = platform.createExtensionFunction( 
  27.     'glFogFuncSGIS', dll=platform.GL,
  28.     extension=EXTENSION_NAME,
  29.     resultType=None, 
  30.     argTypes=(constants.GLsizei, arrays.GLfloatArray,),
  31.     doc = 'glFogFuncSGIS( GLsizei(n), GLfloatArray(points) ) -> None',
  32.     argNames = ('n', 'points',),
  33. )
  34.  
  35. glGetFogFuncSGIS = platform.createExtensionFunction( 
  36.     'glGetFogFuncSGIS', dll=platform.GL,
  37.     extension=EXTENSION_NAME,
  38.     resultType=None, 
  39.     argTypes=(arrays.GLfloatArray,),
  40.     doc = 'glGetFogFuncSGIS( GLfloatArray(points) ) -> None',
  41.     argNames = ('points',),
  42. )
  43.  
  44.  
  45. def glInitFogFunctionSGIS():
  46.     '''Return boolean indicating whether this extension is available'''
  47.     return extensions.hasGLExtension( EXTENSION_NAME )
  48.