#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. | |
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!
|
|
|
|
|
Flip the render window's frame buffers.
|
|
|
Get viewport height of rendering window.
|
|
|
Get viewport width of rendering window.
|
|
|
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. |
|
|
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.4.6