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 / SGIX / async_pixel.py < prev    next >
Encoding:
Python Source  |  2008-12-07  |  2.0 KB  |  42 lines

  1. '''OpenGL extension SGIX.async_pixel
  2.  
  3. Overview (from the spec)
  4.     
  5.     This extension introduces a new asynchronous mode for texture
  6.     download, pixel download and pixel readback commands.  It allows
  7.     programs to transfer textures or images between the host and the
  8.     graphics accelerator in parallel with the execution of other
  9.     graphics commands (possibly taking advantage of a secondary path
  10.     to the graphics accelerator).  It also allows programs to issue
  11.     non-blocking pixel readback commands that return immediately after
  12.     they are issued so that the program can issue other commands while
  13.     the readback takes place.
  14.  
  15. The official definition of this extension is available here:
  16.     http://oss.sgi.com/projects/ogl-sample/registry/SGIX/async_pixel.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_SGIX_async_pixel'
  25. GL_ASYNC_TEX_IMAGE_SGIX = constant.Constant( 'GL_ASYNC_TEX_IMAGE_SGIX', 0x835C )
  26. glget.addGLGetConstant( GL_ASYNC_TEX_IMAGE_SGIX, (1,) )
  27. GL_ASYNC_DRAW_PIXELS_SGIX = constant.Constant( 'GL_ASYNC_DRAW_PIXELS_SGIX', 0x835D )
  28. glget.addGLGetConstant( GL_ASYNC_DRAW_PIXELS_SGIX, (1,) )
  29. GL_ASYNC_READ_PIXELS_SGIX = constant.Constant( 'GL_ASYNC_READ_PIXELS_SGIX', 0x835E )
  30. glget.addGLGetConstant( GL_ASYNC_READ_PIXELS_SGIX, (1,) )
  31. GL_MAX_ASYNC_TEX_IMAGE_SGIX = constant.Constant( 'GL_MAX_ASYNC_TEX_IMAGE_SGIX', 0x835F )
  32. glget.addGLGetConstant( GL_MAX_ASYNC_TEX_IMAGE_SGIX, (1,) )
  33. GL_MAX_ASYNC_DRAW_PIXELS_SGIX = constant.Constant( 'GL_MAX_ASYNC_DRAW_PIXELS_SGIX', 0x8360 )
  34. glget.addGLGetConstant( GL_MAX_ASYNC_DRAW_PIXELS_SGIX, (1,) )
  35. GL_MAX_ASYNC_READ_PIXELS_SGIX = constant.Constant( 'GL_MAX_ASYNC_READ_PIXELS_SGIX', 0x8361 )
  36. glget.addGLGetConstant( GL_MAX_ASYNC_READ_PIXELS_SGIX, (1,) )
  37.  
  38.  
  39. def glInitAsyncPixelSGIX():
  40.     '''Return boolean indicating whether this extension is available'''
  41.     return extensions.hasGLExtension( EXTENSION_NAME )
  42.