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 / copy_texture.py < prev    next >
Encoding:
Python Source  |  2008-12-07  |  3.5 KB  |  71 lines

  1. '''OpenGL extension EXT.copy_texture
  2.  
  3. Overview (from the spec)
  4.     
  5.     This extension defines methods to load texture images directly from the
  6.     framebuffer.  Methods are defined for both complete and partial
  7.     replacement of a texture image.  Because it is not possible to define
  8.     an entire 3D texture using a 2D framebuffer image, 3D textures are
  9.     supported only for partial replacement.
  10.  
  11. The official definition of this extension is available here:
  12.     http://oss.sgi.com/projects/ogl-sample/registry/EXT/copy_texture.txt
  13.  
  14. Automatically generated by the get_gl_extensions script, do not edit!
  15. '''
  16. from OpenGL import platform, constants, constant, arrays
  17. from OpenGL import extensions
  18. from OpenGL.GL import glget
  19. import ctypes
  20. EXTENSION_NAME = 'GL_EXT_copy_texture'
  21.  
  22. glCopyTexImage1DEXT = platform.createExtensionFunction( 
  23.     'glCopyTexImage1DEXT', dll=platform.GL,
  24.     extension=EXTENSION_NAME,
  25.     resultType=None, 
  26.     argTypes=(constants.GLenum, constants.GLint, constants.GLenum, constants.GLint, constants.GLint, constants.GLsizei, constants.GLint,),
  27.     doc = 'glCopyTexImage1DEXT( GLenum(target), GLint(level), GLenum(internalformat), GLint(x), GLint(y), GLsizei(width), GLint(border) ) -> None',
  28.     argNames = ('target', 'level', 'internalformat', 'x', 'y', 'width', 'border',),
  29. )
  30.  
  31. glCopyTexImage2DEXT = platform.createExtensionFunction( 
  32.     'glCopyTexImage2DEXT', dll=platform.GL,
  33.     extension=EXTENSION_NAME,
  34.     resultType=None, 
  35.     argTypes=(constants.GLenum, constants.GLint, constants.GLenum, constants.GLint, constants.GLint, constants.GLsizei, constants.GLsizei, constants.GLint,),
  36.     doc = 'glCopyTexImage2DEXT( GLenum(target), GLint(level), GLenum(internalformat), GLint(x), GLint(y), GLsizei(width), GLsizei(height), GLint(border) ) -> None',
  37.     argNames = ('target', 'level', 'internalformat', 'x', 'y', 'width', 'height', 'border',),
  38. )
  39.  
  40. glCopyTexSubImage1DEXT = platform.createExtensionFunction( 
  41.     'glCopyTexSubImage1DEXT', dll=platform.GL,
  42.     extension=EXTENSION_NAME,
  43.     resultType=None, 
  44.     argTypes=(constants.GLenum, constants.GLint, constants.GLint, constants.GLint, constants.GLint, constants.GLsizei,),
  45.     doc = 'glCopyTexSubImage1DEXT( GLenum(target), GLint(level), GLint(xoffset), GLint(x), GLint(y), GLsizei(width) ) -> None',
  46.     argNames = ('target', 'level', 'xoffset', 'x', 'y', 'width',),
  47. )
  48.  
  49. glCopyTexSubImage2DEXT = platform.createExtensionFunction( 
  50.     'glCopyTexSubImage2DEXT', dll=platform.GL,
  51.     extension=EXTENSION_NAME,
  52.     resultType=None, 
  53.     argTypes=(constants.GLenum, constants.GLint, constants.GLint, constants.GLint, constants.GLint, constants.GLint, constants.GLsizei, constants.GLsizei,),
  54.     doc = 'glCopyTexSubImage2DEXT( GLenum(target), GLint(level), GLint(xoffset), GLint(yoffset), GLint(x), GLint(y), GLsizei(width), GLsizei(height) ) -> None',
  55.     argNames = ('target', 'level', 'xoffset', 'yoffset', 'x', 'y', 'width', 'height',),
  56. )
  57.  
  58. glCopyTexSubImage3DEXT = platform.createExtensionFunction( 
  59.     'glCopyTexSubImage3DEXT', dll=platform.GL,
  60.     extension=EXTENSION_NAME,
  61.     resultType=None, 
  62.     argTypes=(constants.GLenum, constants.GLint, constants.GLint, constants.GLint, constants.GLint, constants.GLint, constants.GLint, constants.GLsizei, constants.GLsizei,),
  63.     doc = 'glCopyTexSubImage3DEXT( GLenum(target), GLint(level), GLint(xoffset), GLint(yoffset), GLint(zoffset), GLint(x), GLint(y), GLsizei(width), GLsizei(height) ) -> None',
  64.     argNames = ('target', 'level', 'xoffset', 'yoffset', 'zoffset', 'x', 'y', 'width', 'height',),
  65. )
  66.  
  67.  
  68. def glInitCopyTextureEXT():
  69.     '''Return boolean indicating whether this extension is available'''
  70.     return extensions.hasGLExtension( EXTENSION_NAME )
  71.