Valkka
1.6.1
OpenSource Video Management
|
Group of bitmaps that are rendered into the same X-window. More...
#include <openglthread.h>
Public Member Functions | |
RenderGroup (Display *display_id, const GLXContext &glc, Window window_id, Window child_id, bool doublebuffer_flag=true) | |
Default constructor. More... | |
~RenderGroup () | |
Default destructor. | |
Window | getWindowId () const |
const std::list< RenderContext * > & | getRenderContexes () const |
std::list< RenderContext * >::iterator | getContext (int id) |
Returns iterator at matched render context id. | |
bool | addContext (RenderContext *render_context) |
Add RenderContext to RenderGroup::render_contexes (with checking) More... | |
RenderContext * | delContext (int id) |
Remove RenderContext from RenderGroup::render_contexes (with checking) | |
bool | isEmpty () |
Checks if there are any render contexes in the render_contexes list. | |
void | render () |
Render everything in this group (i.e. More... | |
Public Attributes | |
Display * | display_id |
X display id. | |
const GLXContext & | glc |
GLX Context. | |
Window | window_id |
X window id: render group id. | |
Window | child_id |
X window id: rendering target. | |
bool | doublebuffer_flag |
Double buffer rendering or not? | |
std::list< RenderContext * > | render_contexes |
RenderContext instances in ascending z order. User created rendercontexes are warehoused here. | |
XWindowAttributes | x_window_attr |
X window attributes. | |
Group of bitmaps that are rendered into the same X-window.
A RenderGroup instance is indentified uniquely by an x-window id.
RenderGroup::RenderGroup | ( | Display * | display_id, |
const GLXContext & | glc, | ||
Window | window_id, | ||
Window | child_id, | ||
bool | doublebuffer_flag = true |
||
) |
Default constructor.
display_id | Pointer to x display id |
glc | Reference to GXLContext |
window_id | X window id: used as an id for the render group |
child_id | X window id: this is the actual render target. Can be the same as window_id. |
doublebuffer_flag | Use double buffering or not (default true) |
bool RenderGroup::addContext | ( | RenderContext * | render_context | ) |
Add RenderContext to RenderGroup::render_contexes (with checking)
void RenderGroup::render | ( | ) |
Render everything in this group (i.e.
in this x window)