Graphics::RenderTarget Class Referenceabstract

Interface for objects which support writing via surfaces. More...

#include <Object.h>

Inheritance diagram for Graphics::RenderTarget:

Public Member Functions

virtual ~RenderTarget ()
 
virtual Size getSize () const =0
 Get target dimensions. More...
 
virtual PixelFormat getPixelFormat () const =0
 All surfaces support the same pixel format. More...
 
virtual SurfacecreateSurface (size_t bufferSize=0)=0
 Create a surface for use with this render target. More...
 
PackedColor getColor (Color color) const
 

Detailed Description

Interface for objects which support writing via surfaces.

Constructor & Destructor Documentation

◆ ~RenderTarget()

virtual Graphics::RenderTarget::~RenderTarget ( )
inlinevirtual

Member Function Documentation

◆ createSurface()

virtual Surface* Graphics::RenderTarget::createSurface ( size_t  bufferSize = 0)
pure virtual

Create a surface for use with this render target.

Parameters
bufferSizeSize of internal command/data buffer
Return values
Surface*The surface to use

Caller is responsible for destroying the surface when no longer required.

Implemented in Graphics::FileImageObject, Graphics::MemoryImageObject, Graphics::MipiDisplay, Graphics::Display::NullDevice, and Graphics::Display::Virtual.

◆ getColor()

PackedColor Graphics::RenderTarget::getColor ( Color  color) const
inline

◆ getPixelFormat()

virtual PixelFormat Graphics::RenderTarget::getPixelFormat ( ) const
pure virtual

◆ getSize()

virtual Size Graphics::RenderTarget::getSize ( ) const
pure virtual

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