All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
kanzi::DefaultRenderTarget Class Reference

#include <kanzi/render_output/default_render_target.hpp>

Inheritance diagram for kanzi::DefaultRenderTarget:
kanzi::RenderTarget

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 KzsDesktopgetDesktop () const
 
struct KzuWindowgetWindow () const
 
- Public Member Functions inherited from kanzi::RenderTarget
 RenderTarget ()
 Constructor. More...
 
virtual ~RenderTarget ()
 Destructor. More...
 
enum KzsDisplayOrientationAngle getOrientationAngle () const
 Returns the orientations of the rendering area. More...
 

Friends

class Application
 

Constructor & Destructor Documentation

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 kanzi::DefaultRenderTarget::~DefaultRenderTarget ( )
virtual

Destructor.

Member Function Documentation

virtual void kanzi::DefaultRenderTarget::makeCurrent ( )
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 void kanzi::DefaultRenderTarget::swapBuffers ( )
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.

Parameters
intervalSpecifies the minimum number of video frame periods per buffer swap. Negative interval values are reserved for platform-specific special cases. swapBuffers().
virtual unsigned int kanzi::DefaultRenderTarget::getWidth ( ) const
virtual

Returns width of rendering area in pixels.

Implements kanzi::RenderTarget.

virtual unsigned int kanzi::DefaultRenderTarget::getHeight ( ) const
virtual

Returns height of rendering area in pixels.

Implements kanzi::RenderTarget.

virtual void kanzi::DefaultRenderTarget::resize ( unsigned int  width,
unsigned int  height 
)
virtual

Resizes the rendering area.

Implements kanzi::RenderTarget.

virtual void kanzi::DefaultRenderTarget::handleEvents ( const struct KzsEventQueue *  eventQueue)
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.

restoreSurface().

void kanzi::DefaultRenderTarget::restoreSurface ( )

Restores the internal GL surface.

removeSurface().

void kanzi::DefaultRenderTarget::setDomain ( Domain domain)
struct KzsDesktop* kanzi::DefaultRenderTarget::getDesktop ( ) const
struct KzuWindow* kanzi::DefaultRenderTarget::getWindow ( ) const

Friends And Related Function Documentation

friend class Application
friend

The documentation for this class was generated from the following file: