Inherits from: dmuGLPBuffer
#include "dmuGLCtx.h"
the dmuGLCtx is a subclass of dmuGLPbuffer that provides GLX
context functionality around the PBuffer encapsulated in the
dmuGLPBuffer class. This class can be usefull for performing
compositing sorts of operations on incoming video or movie data.
At any point in time, the latest DMBuffer that has been passed in
to the object can be grab'ed. Once grabbed, the buffer is
locked and safe to use. Using calles to then makeCurrent,
makeCurrentRead, and makeCurrentWrite methods will then allow you
to perform rendering operations to and from this buffer (which
already has data in it which has been passed down the dmu chain).
Once a buffer is released, then the DMBuffer which had been grabed
is then passed down the chain to the object's children - A display
object, or a videoOut object, for example.
Please note that this is a very useful object, but has not been
tested very well. There are known problems with this class which
we are trying to track down for the next release of the library.
See the source code for more info and implementation details.
Context methods - The following methods call glx
functions to make the context for the PBuffer, and the current
associated dmbuffer, current for GL reading, and/or writing
operations. See glXMakeCurrent (3G) and glXMakeCurrentReadSGI
(3G) for more details on how these work in GL. Note that
grab() must be called on the object before performing any
of these operations, and release should be called as
soon as you are finished rendering into/out of the
pbuffer