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 / sharpen_texture.py < prev    next >
Encoding:
Python Source  |  2008-12-07  |  1.9 KB  |  46 lines

  1. '''OpenGL extension SGIS.sharpen_texture
  2.  
  3. Overview (from the spec)
  4.     
  5.     This extension introduces texture magnification filters that sharpen
  6.     the resulting image by extrapolating from the level 1 image to the
  7.     level 0 image.  Sharpening can be enabled for all color channels, for
  8.     the alpha channel only, or for the red, green, and blue channels only.
  9.  
  10. The official definition of this extension is available here:
  11.     http://oss.sgi.com/projects/ogl-sample/registry/SGIS/sharpen_texture.txt
  12.  
  13. Automatically generated by the get_gl_extensions script, do not edit!
  14. '''
  15. from OpenGL import platform, constants, constant, arrays
  16. from OpenGL import extensions
  17. from OpenGL.GL import glget
  18. import ctypes
  19. EXTENSION_NAME = 'GL_SGIS_sharpen_texture'
  20. GL_LINEAR_SHARPEN_SGIS = constant.Constant( 'GL_LINEAR_SHARPEN_SGIS', 0x80AD )
  21. GL_LINEAR_SHARPEN_ALPHA_SGIS = constant.Constant( 'GL_LINEAR_SHARPEN_ALPHA_SGIS', 0x80AE )
  22. GL_LINEAR_SHARPEN_COLOR_SGIS = constant.Constant( 'GL_LINEAR_SHARPEN_COLOR_SGIS', 0x80AF )
  23. GL_SHARPEN_TEXTURE_FUNC_POINTS_SGIS = constant.Constant( 'GL_SHARPEN_TEXTURE_FUNC_POINTS_SGIS', 0x80B0 )
  24. glSharpenTexFuncSGIS = platform.createExtensionFunction( 
  25.     'glSharpenTexFuncSGIS', dll=platform.GL,
  26.     extension=EXTENSION_NAME,
  27.     resultType=None, 
  28.     argTypes=(constants.GLenum, constants.GLsizei, arrays.GLfloatArray,),
  29.     doc = 'glSharpenTexFuncSGIS( GLenum(target), GLsizei(n), GLfloatArray(points) ) -> None',
  30.     argNames = ('target', 'n', 'points',),
  31. )
  32.  
  33. glGetSharpenTexFuncSGIS = platform.createExtensionFunction( 
  34.     'glGetSharpenTexFuncSGIS', dll=platform.GL,
  35.     extension=EXTENSION_NAME,
  36.     resultType=None, 
  37.     argTypes=(constants.GLenum, arrays.GLfloatArray,),
  38.     doc = 'glGetSharpenTexFuncSGIS( GLenum(target), GLfloatArray(points) ) -> None',
  39.     argNames = ('target', 'points',),
  40. )
  41.  
  42.  
  43. def glInitSharpenTextureSGIS():
  44.     '''Return boolean indicating whether this extension is available'''
  45.     return extensions.hasGLExtension( EXTENSION_NAME )
  46.