dmuGLPaintBuffer
Inherits from: dmuGLCtx
#include "dmuGLPaintBuffer.h"
Overview
This class extends the dmuGLCtx class to contain a pool of a dmbuffer
that it can allocate. This allows you to use this class as the head
of a chain. With this object at the head of a chain you can render
openGL into the pbuffer this object provides and then pass it down
the rest of the chain. This make rendering openGL to video out very easy.
See the source code for more info and implementation details.
Public Methods
- dmuGLPaintBuffer()
Basic construction and parameter initialization
- ~dmuGLPaintBuffer()
Destructor that does nothing currently
- int init (dmuParams *params = NULL)
This method create a pbuffer, a gl Context, and a pool of dmbuffers.
- int grab()
allocates a buffer from the pool and makes it the currently grab()ed
buffer. You can then make it current and render into it. From there
you can propagate it down the rest of the chain.
Overview Object List Object Hierarchy
Sample Apps