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 / IBM / rasterpos_clip.py < prev    next >
Encoding:
Python Source  |  2008-12-07  |  1.2 KB  |  31 lines

  1. '''OpenGL extension IBM.rasterpos_clip
  2.  
  3. Overview (from the spec)
  4.     
  5.     IBM_rasterpos_clip extends the semantics of the RasterPos functions.  It
  6.     provides an enable that allows a raster position that would normally be
  7.     clipped to be treated as a valid (albeit out-of-viewport) position.
  8.     
  9.     This extension allows applications to specify geometry-aligned pixel
  10.     primitives that may be partially off-screen.  These primitives are
  11.     tested on a pixel-by-pixel basis without being rejected completely
  12.     because of an invalid raster position.
  13.  
  14. The official definition of this extension is available here:
  15.     http://oss.sgi.com/projects/ogl-sample/registry/IBM/rasterpos_clip.txt
  16.  
  17. Automatically generated by the get_gl_extensions script, do not edit!
  18. '''
  19. from OpenGL import platform, constants, constant, arrays
  20. from OpenGL import extensions
  21. from OpenGL.GL import glget
  22. import ctypes
  23. EXTENSION_NAME = 'GL_IBM_rasterpos_clip'
  24. GL_RASTER_POSITION_UNCLIPPED_IBM = constant.Constant( 'GL_RASTER_POSITION_UNCLIPPED_IBM', 0x19262 )
  25. glget.addGLGetConstant( GL_RASTER_POSITION_UNCLIPPED_IBM, (1,) )
  26.  
  27.  
  28. def glInitRasterposClipIBM():
  29.     '''Return boolean indicating whether this extension is available'''
  30.     return extensions.hasGLExtension( EXTENSION_NAME )
  31.