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

  1. '''OpenGL extension SGIX.flush_raster
  2.  
  3. Overview (from the spec)
  4.     
  5.     This extensions provides a way to ensure that all raster operations 
  6.     currently in the pipeline will be completed before the next 
  7.     raster operation begins. We define a raster operation as an operation
  8.     that involves the rasterization stage of the OpenGL pipeline.
  9.     The implementation is free to decide what consitutes flushing the
  10.     raster subsystem.
  11.     
  12.     The motivation is to allow accurate instrumentation by 
  13.     including this call before stopping rasterization measurements.
  14.     There are cases where Finish() is used, but a FlushRaster()
  15.     would suffice, so this extension is deliberately kept independent 
  16.     of the instruments extension.
  17.  
  18. The official definition of this extension is available here:
  19.     http://oss.sgi.com/projects/ogl-sample/registry/SGIX/flush_raster.txt
  20.  
  21. Automatically generated by the get_gl_extensions script, do not edit!
  22. '''
  23. from OpenGL import platform, constants, constant, arrays
  24. from OpenGL import extensions
  25. from OpenGL.GL import glget
  26. import ctypes
  27. EXTENSION_NAME = 'GL_SGIX_flush_raster'
  28.  
  29. glFlushRasterSGIX = platform.createExtensionFunction( 
  30.     'glFlushRasterSGIX', dll=platform.GL,
  31.     extension=EXTENSION_NAME,
  32.     resultType=None, 
  33.     argTypes=(),
  34.     doc = 'glFlushRasterSGIX(  ) -> None',
  35.     argNames = (),
  36. )
  37.  
  38.  
  39. def glInitFlushRasterSGIX():
  40.     '''Return boolean indicating whether this extension is available'''
  41.     return extensions.hasGLExtension( EXTENSION_NAME )
  42.