All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
kanzi::RenderTarget Class Referenceabstract

RenderTarget class. More...

#include <kanzi/render_output/render_target.hpp>

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

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...
 

Detailed Description

RenderTarget class.

Base class for render targets.

Constructor & Destructor Documentation

kanzi::RenderTarget::RenderTarget ( )

Constructor.

virtual kanzi::RenderTarget::~RenderTarget ( )
virtual

Destructor.

Member Function Documentation

virtual void kanzi::RenderTarget::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 in kanzi::DefaultRenderTarget.

virtual void kanzi::RenderTarget::swapBuffers ( )
virtual

Posts rendering results.

Implicitly flushes the rendering pipeline and executes all received rendering commands before posting.

Reimplemented in kanzi::DefaultRenderTarget.

virtual unsigned int kanzi::RenderTarget::getWidth ( ) const
pure virtual

Returns width of rendering area in pixels.

Implemented in kanzi::DefaultRenderTarget.

virtual unsigned int kanzi::RenderTarget::getHeight ( ) const
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.

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

Resizes the rendering area.

Implemented in kanzi::DefaultRenderTarget.

virtual void kanzi::RenderTarget::handleEvents ( const struct KzsEventQueue *  eventQueue)
pure virtual

Handles appropriate events.

Implemented in kanzi::DefaultRenderTarget.


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