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

  1. '''OpenGL extension SGIX.vertex_preclip
  2.  
  3. Overview (from the spec)
  4.     
  5.     Certain graphics subsystems are capable of performing fast
  6.     2D viewport or, in some cases, 3D volume "scissoring" operations
  7.     within some coordinate range much faster that the host CPU could
  8.     re-tesselate clipped primitives.
  9.     
  10.     This extension introduces the notion of an extended rasterizable view
  11.     volume that is an expansion of the clip-space view volume.    This volume
  12.     is the space within which a particular graphics system is much more
  13.     efficient at rejecting fragments that lie outside the view volume than
  14.     it is at performing strict view volume clipping.
  15.     
  16.     Clip-checking can be turned on or off through the glEnable/glDisable
  17.     mechanism, and can be further controlled by using glHint.
  18.  
  19. The official definition of this extension is available here:
  20.     http://oss.sgi.com/projects/ogl-sample/registry/SGIX/vertex_preclip.txt
  21.  
  22. Automatically generated by the get_gl_extensions script, do not edit!
  23. '''
  24. from OpenGL import platform, constants, constant, arrays
  25. from OpenGL import extensions
  26. from OpenGL.GL import glget
  27. import ctypes
  28. EXTENSION_NAME = 'GL_SGIX_vertex_preclip'
  29. GL_VERTEX_PRECLIP_SGIX = constant.Constant( 'GL_VERTEX_PRECLIP_SGIX', 0x83EE )
  30. GL_VERTEX_PRECLIP_HINT_SGIX = constant.Constant( 'GL_VERTEX_PRECLIP_HINT_SGIX', 0x83EF )
  31.  
  32.  
  33. def glInitVertexPreclipSGIX():
  34.     '''Return boolean indicating whether this extension is available'''
  35.     return extensions.hasGLExtension( EXTENSION_NAME )
  36.