CL_RenderWindowProvider Class Reference
[clanDisplay Display]

Provides generic render window services for clanDisplay. More...

#include <render_window_provider.h>

List of all members.

Public Member Functions

Construction
virtual ~CL_RenderWindowProvider ()
Attributes
virtual int get_viewport_width () const =0
 Get viewport width of rendering window.
virtual int get_viewport_height () const =0
 Get viewport height of rendering window.
Operations
virtual const CL_RenderWindowProvidernew_worker_context () const =0
 Creates a new worker context for the render window.
virtual void flip_buffers (int interval=-1) const =0
 Flip the render window's frame buffers.
virtual void make_current () const =0
 Sets this to the active render context.


Detailed Description

Provides generic render window services for clanDisplay.

This type encapsulates a platform-specific rendering window. It is designed to encapsulate and hide platform dependencies from code that interacts with a rendering context or drawable. It is particularly useful for integrating third-party windowing libraries such as Fltk or wxWidgets with Clanlib drawing services. !group=Display/Display Target Interface! !header=display.h!


Constructor & Destructor Documentation

virtual CL_RenderWindowProvider::~CL_RenderWindowProvider  )  [inline, virtual]
 


Member Function Documentation

virtual void CL_RenderWindowProvider::flip_buffers int  interval = -1  )  const [pure virtual]
 

Flip the render window's frame buffers.

virtual int CL_RenderWindowProvider::get_viewport_height  )  const [pure virtual]
 

Get viewport height of rendering window.

virtual int CL_RenderWindowProvider::get_viewport_width  )  const [pure virtual]
 

Get viewport width of rendering window.

virtual void CL_RenderWindowProvider::make_current  )  const [pure virtual]
 

Sets this to the active render context.

More precisely, makes current the render context associated with the render window represented by this object to be the active context. Different render windows might actually share contexts.

virtual const CL_RenderWindowProvider* CL_RenderWindowProvider::new_worker_context  )  const [pure virtual]
 

Creates a new worker context for the render window.

This creates a new render window provider which refers to the same render window as the spawning provider, but with a new rendering context. The returned pointer refers to a newly allocated instance, and it is the caller's responsibility to destroy it.


The documentation for this class was generated from the following file:
Generated on Thu Dec 3 02:39:40 2009 for ClanLib by  doxygen 1.4.6