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 / texture4D.py < prev   
Encoding:
Python Source  |  2008-12-07  |  3.8 KB  |  67 lines

  1. '''OpenGL extension SGIS.texture4D
  2.  
  3. Overview (from the spec)
  4.     
  5.     This extension defines 4-dimensional texture mapping.  If EXT_subtexture
  6.     is supported, this extension also defines a mechanism to redefine a
  7.     portion of an existing 4-dimensional texture image.  Because
  8.     EXT_texture3D is required, this extension utilizes the 3-dimensional
  9.     image support defined in by EXT_texture3D as a base for 4-dimensional
  10.     image manipulation.
  11.     
  12.     The 4th dimension has an abstract, rather than physical, reference
  13.     and will be called "extent", since the definition of extent is "that which
  14.     specifies the range or magnitude of an area or volume."
  15.     
  16.     Four-dimensional texture mapping is more constrained than its one, two,
  17.     and three-dimensional counterparts.  Mipmapping is not supported, so
  18.     only the level-zero 4-dimensional texture image can be defined.  Cubic
  19.     filtering is not supported, so the border width must be either zero or
  20.     one.
  21.     
  22.     Four-dimensional textures are used primarily as color lookup tables for
  23.     color conversion.
  24.  
  25. The official definition of this extension is available here:
  26.     http://oss.sgi.com/projects/ogl-sample/registry/SGIS/texture4D.txt
  27.  
  28. Automatically generated by the get_gl_extensions script, do not edit!
  29. '''
  30. from OpenGL import platform, constants, constant, arrays
  31. from OpenGL import extensions
  32. from OpenGL.GL import glget
  33. import ctypes
  34. EXTENSION_NAME = 'GL_SGIS_texture4D'
  35. GL_PACK_SKIP_VOLUMES_SGIS = constant.Constant( 'GL_PACK_SKIP_VOLUMES_SGIS', 0x8130 )
  36. GL_PACK_IMAGE_DEPTH_SGIS = constant.Constant( 'GL_PACK_IMAGE_DEPTH_SGIS', 0x8131 )
  37. GL_UNPACK_SKIP_VOLUMES_SGIS = constant.Constant( 'GL_UNPACK_SKIP_VOLUMES_SGIS', 0x8132 )
  38. GL_UNPACK_IMAGE_DEPTH_SGIS = constant.Constant( 'GL_UNPACK_IMAGE_DEPTH_SGIS', 0x8133 )
  39. GL_TEXTURE_4D_SGIS = constant.Constant( 'GL_TEXTURE_4D_SGIS', 0x8134 )
  40. GL_PROXY_TEXTURE_4D_SGIS = constant.Constant( 'GL_PROXY_TEXTURE_4D_SGIS', 0x8135 )
  41. GL_TEXTURE_4DSIZE_SGIS = constant.Constant( 'GL_TEXTURE_4DSIZE_SGIS', 0x8136 )
  42. GL_TEXTURE_WRAP_Q_SGIS = constant.Constant( 'GL_TEXTURE_WRAP_Q_SGIS', 0x8137 )
  43. GL_MAX_4D_TEXTURE_SIZE_SGIS = constant.Constant( 'GL_MAX_4D_TEXTURE_SIZE_SGIS', 0x8138 )
  44. GL_TEXTURE_4D_BINDING_SGIS = constant.Constant( 'GL_TEXTURE_4D_BINDING_SGIS', 0x814F )
  45. glTexImage4DSGIS = platform.createExtensionFunction( 
  46.     'glTexImage4DSGIS', dll=platform.GL,
  47.     extension=EXTENSION_NAME,
  48.     resultType=None, 
  49.     argTypes=(constants.GLenum, constants.GLint, constants.GLenum, constants.GLsizei, constants.GLsizei, constants.GLsizei, constants.GLsizei, constants.GLint, constants.GLenum, constants.GLenum, ctypes.c_void_p,),
  50.     doc = 'glTexImage4DSGIS( GLenum(target), GLint(level), GLenum(internalformat), GLsizei(width), GLsizei(height), GLsizei(depth), GLsizei(size4d), GLint(border), GLenum(format), GLenum(type), c_void_p(pixels) ) -> None',
  51.     argNames = ('target', 'level', 'internalformat', 'width', 'height', 'depth', 'size4d', 'border', 'format', 'type', 'pixels',),
  52. )
  53.  
  54. glTexSubImage4DSGIS = platform.createExtensionFunction( 
  55.     'glTexSubImage4DSGIS', dll=platform.GL,
  56.     extension=EXTENSION_NAME,
  57.     resultType=None, 
  58.     argTypes=(constants.GLenum, constants.GLint, constants.GLint, constants.GLint, constants.GLint, constants.GLint, constants.GLsizei, constants.GLsizei, constants.GLsizei, constants.GLsizei, constants.GLenum, constants.GLenum, ctypes.c_void_p,),
  59.     doc = 'glTexSubImage4DSGIS( GLenum(target), GLint(level), GLint(xoffset), GLint(yoffset), GLint(zoffset), GLint(woffset), GLsizei(width), GLsizei(height), GLsizei(depth), GLsizei(size4d), GLenum(format), GLenum(type), c_void_p(pixels) ) -> None',
  60.     argNames = ('target', 'level', 'xoffset', 'yoffset', 'zoffset', 'woffset', 'width', 'height', 'depth', 'size4d', 'format', 'type', 'pixels',),
  61. )
  62.  
  63.  
  64. def glInitTexture4DSGIS():
  65.     '''Return boolean indicating whether this extension is available'''
  66.     return extensions.hasGLExtension( EXTENSION_NAME )
  67.