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_histogram.py < prev    next >
Encoding:
Python Source  |  2008-12-07  |  1.1 KB  |  29 lines

  1. '''OpenGL extension SGIX.async_histogram
  2.  
  3. Overview (from the spec)
  4.     
  5.     This extension introduces a new asynchronous mode for histogram
  6.     and minmax readbacks.  It allows programs to get the contents of a
  7.     histogram or minmax table without blocking and to continue issuing
  8.     graphics commands during the readback.
  9.  
  10. The official definition of this extension is available here:
  11.     http://oss.sgi.com/projects/ogl-sample/registry/SGIX/async_histogram.txt
  12.  
  13. Automatically generated by the get_gl_extensions script, do not edit!
  14. '''
  15. from OpenGL import platform, constants, constant, arrays
  16. from OpenGL import extensions
  17. from OpenGL.GL import glget
  18. import ctypes
  19. EXTENSION_NAME = 'GL_SGIX_async_histogram'
  20. GL_ASYNC_HISTOGRAM_SGIX = constant.Constant( 'GL_ASYNC_HISTOGRAM_SGIX', 0x832C )
  21. glget.addGLGetConstant( GL_ASYNC_HISTOGRAM_SGIX, (1,) )
  22. GL_MAX_ASYNC_HISTOGRAM_SGIX = constant.Constant( 'GL_MAX_ASYNC_HISTOGRAM_SGIX', 0x832D )
  23. glget.addGLGetConstant( GL_MAX_ASYNC_HISTOGRAM_SGIX, (1,) )
  24.  
  25.  
  26. def glInitAsyncHistogramSGIX():
  27.     '''Return boolean indicating whether this extension is available'''
  28.     return extensions.hasGLExtension( EXTENSION_NAME )
  29.