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 / framebuffer_blit.py < prev    next >
Encoding:
Python Source  |  2008-12-07  |  1.8 KB  |  38 lines

  1. '''OpenGL extension EXT.framebuffer_blit
  2.  
  3. Overview (from the spec)
  4.     
  5.     This extension modifies EXT_framebuffer_object by splitting the
  6.     framebuffer object binding point into separate DRAW and READ
  7.     bindings.  This allows copying directly from one framebuffer to
  8.     another.  In addition, a new high performance blit function is
  9.     added to facilitate these blits and perform some data conversion
  10.     where allowed.
  11.  
  12. The official definition of this extension is available here:
  13.     http://oss.sgi.com/projects/ogl-sample/registry/EXT/framebuffer_blit.txt
  14.  
  15. Automatically generated by the get_gl_extensions script, do not edit!
  16. '''
  17. from OpenGL import platform, constants, constant, arrays
  18. from OpenGL import extensions
  19. from OpenGL.GL import glget
  20. import ctypes
  21. EXTENSION_NAME = 'GL_EXT_framebuffer_blit'
  22. GL_READ_FRAMEBUFFER_EXT = constant.Constant( 'GL_READ_FRAMEBUFFER_EXT', 0x8CA8 )
  23. GL_DRAW_FRAMEBUFFER_EXT = constant.Constant( 'GL_DRAW_FRAMEBUFFER_EXT', 0x8CA9 )
  24. GL_READ_FRAMEBUFFER_BINDING_EXT = constant.Constant( 'GL_READ_FRAMEBUFFER_BINDING_EXT', 0x8CAA )
  25. glBlitFramebufferEXT = platform.createExtensionFunction( 
  26.     'glBlitFramebufferEXT', dll=platform.GL,
  27.     extension=EXTENSION_NAME,
  28.     resultType=None, 
  29.     argTypes=(constants.GLint, constants.GLint, constants.GLint, constants.GLint, constants.GLint, constants.GLint, constants.GLint, constants.GLint, constants.GLbitfield, constants.GLenum,),
  30.     doc = 'glBlitFramebufferEXT( GLint(srcX0), GLint(srcY0), GLint(srcX1), GLint(srcY1), GLint(dstX0), GLint(dstY0), GLint(dstX1), GLint(dstY1), GLbitfield(mask), GLenum(filter) ) -> None',
  31.     argNames = ('srcX0', 'srcY0', 'srcX1', 'srcY1', 'dstX0', 'dstY0', 'dstX1', 'dstY1', 'mask', 'filter',),
  32. )
  33.  
  34.  
  35. def glInitFramebufferBlitEXT():
  36.     '''Return boolean indicating whether this extension is available'''
  37.     return extensions.hasGLExtension( EXTENSION_NAME )
  38.