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 / detail_texture.py < prev    next >
Encoding:
Python Source  |  2008-12-07  |  2.7 KB  |  58 lines

  1. '''OpenGL extension SGIS.detail_texture
  2.  
  3. Overview (from the spec)
  4.     
  5.         This extension introduces texture magnification filters that blend
  6.         between the level 0 image and a separately defined "detail" image.
  7.         The detail image represents the characteristics of the high frequency
  8.         subband image above the band-limited level 0 image.  The detail image is
  9.         typically a rectangular portion of the subband image which is modified
  10.         so that it can be repeated without discontinuities along its edges.
  11.         Detail blending can be enabled for all color channels, for the alpha
  12.         channel only, or for the red, green, and blue channels only.  It is
  13.         available only for 2D textures.
  14.     
  15.         WARNING - Silicon Graphics has filed for patent protection for some
  16.               of the techniques described in this extension document.
  17.  
  18. The official definition of this extension is available here:
  19.     http://oss.sgi.com/projects/ogl-sample/registry/SGIS/detail_texture.txt
  20.  
  21. Automatically generated by the get_gl_extensions script, do not edit!
  22. '''
  23. from OpenGL import platform, constants, constant, arrays
  24. from OpenGL import extensions
  25. from OpenGL.GL import glget
  26. import ctypes
  27. EXTENSION_NAME = 'GL_SGIS_detail_texture'
  28. GL_DETAIL_TEXTURE_2D_SGIS = constant.Constant( 'GL_DETAIL_TEXTURE_2D_SGIS', 0x8095 )
  29. GL_DETAIL_TEXTURE_2D_BINDING_SGIS = constant.Constant( 'GL_DETAIL_TEXTURE_2D_BINDING_SGIS', 0x8096 )
  30. GL_LINEAR_DETAIL_SGIS = constant.Constant( 'GL_LINEAR_DETAIL_SGIS', 0x8097 )
  31. GL_LINEAR_DETAIL_ALPHA_SGIS = constant.Constant( 'GL_LINEAR_DETAIL_ALPHA_SGIS', 0x8098 )
  32. GL_LINEAR_DETAIL_COLOR_SGIS = constant.Constant( 'GL_LINEAR_DETAIL_COLOR_SGIS', 0x8099 )
  33. GL_DETAIL_TEXTURE_LEVEL_SGIS = constant.Constant( 'GL_DETAIL_TEXTURE_LEVEL_SGIS', 0x809A )
  34. GL_DETAIL_TEXTURE_MODE_SGIS = constant.Constant( 'GL_DETAIL_TEXTURE_MODE_SGIS', 0x809B )
  35. GL_DETAIL_TEXTURE_FUNC_POINTS_SGIS = constant.Constant( 'GL_DETAIL_TEXTURE_FUNC_POINTS_SGIS', 0x809C )
  36. glDetailTexFuncSGIS = platform.createExtensionFunction( 
  37.     'glDetailTexFuncSGIS', dll=platform.GL,
  38.     extension=EXTENSION_NAME,
  39.     resultType=None, 
  40.     argTypes=(constants.GLenum, constants.GLsizei, arrays.GLfloatArray,),
  41.     doc = 'glDetailTexFuncSGIS( GLenum(target), GLsizei(n), GLfloatArray(points) ) -> None',
  42.     argNames = ('target', 'n', 'points',),
  43. )
  44.  
  45. glGetDetailTexFuncSGIS = platform.createExtensionFunction( 
  46.     'glGetDetailTexFuncSGIS', dll=platform.GL,
  47.     extension=EXTENSION_NAME,
  48.     resultType=None, 
  49.     argTypes=(constants.GLenum, arrays.GLfloatArray,),
  50.     doc = 'glGetDetailTexFuncSGIS( GLenum(target), GLfloatArray(points) ) -> None',
  51.     argNames = ('target', 'points',),
  52. )
  53.  
  54.  
  55. def glInitDetailTextureSGIS():
  56.     '''Return boolean indicating whether this extension is available'''
  57.     return extensions.hasGLExtension( EXTENSION_NAME )
  58.