|
|
'''OpenGL extension OML.interlace |
|
|
|
|
|
This module customises the behaviour of the |
|
|
OpenGL.raw.GL.OML.interlace to provide a more |
|
|
Python-friendly API |
|
|
|
|
|
Overview (from the spec) |
|
|
|
|
|
This extension provides a way to interlace rows of pixels when |
|
|
drawing, reading, or copying pixel rectangles or texture images. In |
|
|
this context, interlacing means skiping over rows of pixels or |
|
|
texels in the destination. This is useful for dealing with video |
|
|
data since a single frame of video is typically composed from two |
|
|
images or fields: one image specifying the data for even rows of the |
|
|
frame and the other image specifying the data for odd rows of the |
|
|
frame. |
|
|
|
|
|
The functionality provided by this extension is a combination |
|
|
of the older SGIX_interlace and INGR_interlace_read extensions, |
|
|
with changes applying interlacing to texture image queries. |
|
|
|
|
|
The official definition of this extension is available here: |
|
|
http://www.opengl.org/registry/specs/OML/interlace.txt |
|
|
''' |
|
|
from OpenGL import platform, constant, arrays |
|
|
from OpenGL import extensions, wrapper |
|
|
import ctypes |
|
|
from OpenGL.raw.GL import _types, _glgets |
|
|
from OpenGL.raw.GL.OML.interlace import * |
|
|
from OpenGL.raw.GL.OML.interlace import _EXTENSION_NAME |
|
|
|
|
|
def glInitInterlaceOML(): |
|
|
'''Return boolean indicating whether this extension is available''' |
|
|
from OpenGL import extensions |
|
|
return extensions.hasGLExtension( _EXTENSION_NAME ) |
|
|
|
|
|
|
|
|
|