Provides generic render window services for clanDisplay. More...
#include <render_window_provider.h>
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_RenderWindowProvider * | new_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. | |
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!
| virtual CL_RenderWindowProvider::~CL_RenderWindowProvider | ( | ) | [inline, virtual] |
| 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.
1.7.1