RenderTarget class. More...
#include <kanzi/render_output/render_target.hpp>
Public Member Functions | |
| RenderTarget () | |
| Constructor. More... | |
| virtual | ~RenderTarget () |
| Destructor. More... | |
| virtual void | makeCurrent () |
| Activates the render target. More... | |
| virtual void | swapBuffers () |
| Posts rendering results. More... | |
| virtual unsigned int | getWidth () const =0 |
| Returns width of rendering area in pixels. More... | |
| virtual unsigned int | getHeight () const =0 |
| Returns height of rendering area in pixels. More... | |
| enum KzsDisplayOrientationAngle | getOrientationAngle () const |
| Returns the orientations of the rendering area. More... | |
| virtual void | resize (unsigned int width, unsigned int height)=0 |
| Resizes the rendering area. More... | |
| virtual void | handleEvents (const struct KzsEventQueue *eventQueue)=0 |
| Handles appropriate events. More... | |
RenderTarget class.
Base class for render targets.
| kanzi::RenderTarget::RenderTarget | ( | ) |
Constructor.
|
virtual |
Destructor.
|
virtual |
Activates the render target.
All rendering commands are delegated to the active render target. Only one render target can be active per thread.
Reimplemented in kanzi::DefaultRenderTarget.
|
virtual |
Posts rendering results.
Implicitly flushes the rendering pipeline and executes all received rendering commands before posting.
Reimplemented in kanzi::DefaultRenderTarget.
|
pure virtual |
Returns width of rendering area in pixels.
Implemented in kanzi::DefaultRenderTarget.
|
pure virtual |
Returns height of rendering area in pixels.
Implemented in kanzi::DefaultRenderTarget.
| enum KzsDisplayOrientationAngle kanzi::RenderTarget::getOrientationAngle | ( | ) | const |
Returns the orientations of the rendering area.
|
pure virtual |
Resizes the rendering area.
Implemented in kanzi::DefaultRenderTarget.
|
pure virtual |
Handles appropriate events.
Implemented in kanzi::DefaultRenderTarget.