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 / EXT / subtexture.py < prev    next >
Encoding:
Python Source  |  2008-12-07  |  2.1 KB  |  48 lines

  1. '''OpenGL extension EXT.subtexture
  2.  
  3. Overview (from the spec)
  4.     
  5.     This extension allows a contiguous portion of an already-existing
  6.     texture image to be redefined, without affecting the remaining portion
  7.     of the image, or any of the other state that describe the texture.  No
  8.     provision is made to query a subregion of a texture.
  9.     
  10.     Semantics for null image pointers are defined for TexImage1D,
  11.     TexImage2D, and TexImage3DEXT.  Null image pointers can be used by
  12.     applications to effectively support texture arrays whose dimensions
  13.     are not a power of 2.
  14.  
  15. The official definition of this extension is available here:
  16.     http://oss.sgi.com/projects/ogl-sample/registry/EXT/subtexture.txt
  17.  
  18. Automatically generated by the get_gl_extensions script, do not edit!
  19. '''
  20. from OpenGL import platform, constants, constant, arrays
  21. from OpenGL import extensions
  22. from OpenGL.GL import glget
  23. import ctypes
  24. EXTENSION_NAME = 'GL_EXT_subtexture'
  25.  
  26. glTexSubImage1DEXT = platform.createExtensionFunction( 
  27.     'glTexSubImage1DEXT', dll=platform.GL,
  28.     extension=EXTENSION_NAME,
  29.     resultType=None, 
  30.     argTypes=(constants.GLenum, constants.GLint, constants.GLint, constants.GLsizei, constants.GLenum, constants.GLenum, ctypes.c_void_p,),
  31.     doc = 'glTexSubImage1DEXT( GLenum(target), GLint(level), GLint(xoffset), GLsizei(width), GLenum(format), GLenum(type), c_void_p(pixels) ) -> None',
  32.     argNames = ('target', 'level', 'xoffset', 'width', 'format', 'type', 'pixels',),
  33. )
  34.  
  35. glTexSubImage2DEXT = platform.createExtensionFunction( 
  36.     'glTexSubImage2DEXT', dll=platform.GL,
  37.     extension=EXTENSION_NAME,
  38.     resultType=None, 
  39.     argTypes=(constants.GLenum, constants.GLint, constants.GLint, constants.GLint, constants.GLsizei, constants.GLsizei, constants.GLenum, constants.GLenum, ctypes.c_void_p,),
  40.     doc = 'glTexSubImage2DEXT( GLenum(target), GLint(level), GLint(xoffset), GLint(yoffset), GLsizei(width), GLsizei(height), GLenum(format), GLenum(type), c_void_p(pixels) ) -> None',
  41.     argNames = ('target', 'level', 'xoffset', 'yoffset', 'width', 'height', 'format', 'type', 'pixels',),
  42. )
  43.  
  44.  
  45. def glInitSubtextureEXT():
  46.     '''Return boolean indicating whether this extension is available'''
  47.     return extensions.hasGLExtension( EXTENSION_NAME )
  48.