Valkka  1.6.1
OpenSource Video Management
Public Member Functions | Public Attributes | List of all members
RenderGroup Class Reference

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...
 
RenderContextdelContext (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.
 

Detailed Description

Group of bitmaps that are rendered into the same X-window.

A RenderGroup instance is indentified uniquely by an x-window id.

Constructor & Destructor Documentation

◆ RenderGroup()

RenderGroup::RenderGroup ( Display *  display_id,
const GLXContext &  glc,
Window  window_id,
Window  child_id,
bool  doublebuffer_flag = true 
)

Default constructor.

Parameters
display_idPointer to x display id
glcReference to GXLContext
window_idX window id: used as an id for the render group
child_idX window id: this is the actual render target. Can be the same as window_id.
doublebuffer_flagUse double buffering or not (default true)

Member Function Documentation

◆ addContext()

bool RenderGroup::addContext ( RenderContext render_context)

Add RenderContext to RenderGroup::render_contexes (with checking)

Here is the call graph for this function:

◆ render()

void RenderGroup::render ( )

Render everything in this group (i.e.

in this x window)

Here is the call graph for this function:

The documentation for this class was generated from the following files: