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

  1. '''OpenGL extension OML.interlace
  2.  
  3. Overview (from the spec)
  4.     
  5.     This extension provides a way to interlace rows of pixels when
  6.     drawing, reading, or copying pixel rectangles or texture images. In
  7.     this context, interlacing means skiping over rows of pixels or
  8.     texels in the destination. This is useful for dealing with video
  9.     data since a single frame of video is typically composed from two
  10.     images or fields: one image specifying the data for even rows of the
  11.     frame and the other image specifying the data for odd rows of the
  12.     frame.
  13.     
  14.     The functionality provided by this extension is a combination
  15.     of the older SGIX_interlace and INGR_interlace_read extensions,
  16.     with  changes applying interlacing to texture image queries.
  17.  
  18. The official definition of this extension is available here:
  19.     http://oss.sgi.com/projects/ogl-sample/registry/OML/interlace.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_OML_interlace'
  28. GL_INTERLACE_OML = constant.Constant( 'GL_INTERLACE_OML', 0x8980 )
  29. glget.addGLGetConstant( GL_INTERLACE_OML, (1,) )
  30. GL_INTERLACE_READ_OML = constant.Constant( 'GL_INTERLACE_READ_OML', 0x8981 )
  31. glget.addGLGetConstant( GL_INTERLACE_READ_OML, (1,) )
  32.  
  33.  
  34. def glInitInterlaceOML():
  35.     '''Return boolean indicating whether this extension is available'''
  36.     return extensions.hasGLExtension( EXTENSION_NAME )
  37.