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

  1. '''OpenGL extension SGIX.interlace
  2.  
  3. Overview (from the spec)
  4.     
  5.     This extension provides a way to interlace rows of pixels when
  6.     rasterizing pixel rectangles, and loading texture images.  In this
  7.     context, interlacing means skiping over rows of pixels or texels
  8.     in the destination.  This is useful for dealing with video data
  9.     since a single frame of video is typically composed from two images
  10.     or fields: one image specifying the data for even rows of the frame
  11.     and the other image specifying the data for odd rows of the frame.
  12.  
  13. The official definition of this extension is available here:
  14.     http://oss.sgi.com/projects/ogl-sample/registry/SGIX/interlace.txt
  15.  
  16. Automatically generated by the get_gl_extensions script, do not edit!
  17. '''
  18. from OpenGL import platform, constants, constant, arrays
  19. from OpenGL import extensions
  20. from OpenGL.GL import glget
  21. import ctypes
  22. EXTENSION_NAME = 'GL_SGIX_interlace'
  23. GL_INTERLACE_SGIX = constant.Constant( 'GL_INTERLACE_SGIX', 0x8094 )
  24. glget.addGLGetConstant( GL_INTERLACE_SGIX, (1,) )
  25.  
  26.  
  27. def glInitInterlaceSGIX():
  28.     '''Return boolean indicating whether this extension is available'''
  29.     return extensions.hasGLExtension( EXTENSION_NAME )
  30.