#include <kanzi/render_output/default_render_target.hpp>
Public Member Functions | |
DefaultRenderTarget (const struct KzcMemoryManager *memoryManager, const struct KzsSurfaceProperties *surfaceProperties, const struct KzsWindowProperties *windowProperties) | |
Constructor. More... | |
DefaultRenderTarget (const struct KzcMemoryManager *memoryManager, NativeWindowHandle handle, const struct KzsSurfaceProperties *surfaceProperties, const struct KzsWindowProperties *windowProperties) | |
Constructor. More... | |
virtual | ~DefaultRenderTarget () KZ_OVERRIDE |
Destructor. More... | |
virtual void | makeCurrent () KZ_OVERRIDE |
Activates the render target. More... | |
virtual void | swapBuffers () KZ_OVERRIDE |
Posts rendering results. More... | |
void | setSwapInterval (int interval) |
Sets the swap interval of the underlying graphics implementation. More... | |
virtual unsigned int | getWidth () const KZ_OVERRIDE |
Returns width of rendering area in pixels. More... | |
virtual unsigned int | getHeight () const KZ_OVERRIDE |
Returns height of rendering area in pixels. More... | |
virtual void | resize (unsigned int width, unsigned int height) KZ_OVERRIDE |
Resizes the rendering area. More... | |
virtual void | handleEvents (const struct KzsEventQueue *eventQueue) KZ_OVERRIDE |
Handles appropriate events. More... | |
void | logProperties () const |
Logs the properties of the render target. More... | |
void | logExtensions () const |
Logs the extensions of the graphics context. More... | |
void | setWindowTitle (const string &title) |
Sets the window title, if possible. More... | |
void | removeSurface () |
Removes the internal GL surface. More... | |
void | restoreSurface () |
Restores the internal GL surface. More... | |
void | setDomain (Domain *domain) |
struct KzsDesktop * | getDesktop () const |
struct KzuWindow * | getWindow () const |
![]() | |
RenderTarget () | |
Constructor. More... | |
virtual | ~RenderTarget () |
Destructor. More... | |
enum KzsDisplayOrientationAngle | getOrientationAngle () const |
Returns the orientations of the rendering area. More... | |
Friends | |
class | Application |
kanzi::DefaultRenderTarget::DefaultRenderTarget | ( | const struct KzcMemoryManager * | memoryManager, |
const struct KzsSurfaceProperties * | surfaceProperties, | ||
const struct KzsWindowProperties * | windowProperties | ||
) |
Constructor.
kanzi::DefaultRenderTarget::DefaultRenderTarget | ( | const struct KzcMemoryManager * | memoryManager, |
NativeWindowHandle | handle, | ||
const struct KzsSurfaceProperties * | surfaceProperties, | ||
const struct KzsWindowProperties * | windowProperties | ||
) |
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 from kanzi::RenderTarget.
|
virtual |
Posts rendering results.
Implicitly flushes the rendering pipeline and executes all received rendering commands before posting. setSwapInterval().
Reimplemented from kanzi::RenderTarget.
void kanzi::DefaultRenderTarget::setSwapInterval | ( | int | interval | ) |
Sets the swap interval of the underlying graphics implementation.
interval | Specifies the minimum number of video frame periods per buffer swap. Negative interval values are reserved for platform-specific special cases. swapBuffers(). |
|
virtual |
Returns width of rendering area in pixels.
Implements kanzi::RenderTarget.
|
virtual |
Returns height of rendering area in pixels.
Implements kanzi::RenderTarget.
|
virtual |
Resizes the rendering area.
Implements kanzi::RenderTarget.
|
virtual |
Handles appropriate events.
Implements kanzi::RenderTarget.
void kanzi::DefaultRenderTarget::logProperties | ( | ) | const |
Logs the properties of the render target.
void kanzi::DefaultRenderTarget::logExtensions | ( | ) | const |
Logs the extensions of the graphics context.
void kanzi::DefaultRenderTarget::setWindowTitle | ( | const string & | title | ) |
Sets the window title, if possible.
void kanzi::DefaultRenderTarget::removeSurface | ( | ) |
Removes the internal GL surface.
void kanzi::DefaultRenderTarget::restoreSurface | ( | ) |
Restores the internal GL surface.
void kanzi::DefaultRenderTarget::setDomain | ( | Domain * | domain | ) |
struct KzsDesktop* kanzi::DefaultRenderTarget::getDesktop | ( | ) | const |
struct KzuWindow* kanzi::DefaultRenderTarget::getWindow | ( | ) | const |
|
friend |