Interface for objects which support writing via surfaces. More...
#include <Object.h>
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 Surface * | createSurface (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()
|
inlinevirtual |
Member Function Documentation
◆ createSurface()
|
pure virtual |
Create a surface for use with this render target.
- Parameters
-
bufferSize Size 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()
|
inline |
◆ getPixelFormat()
|
pure virtual |
All surfaces support the same pixel format.
Implemented in Graphics::FileImageObject, Graphics::MemoryImageObject, Graphics::MipiDisplay, Graphics::Display::NullDevice, and Graphics::Display::Virtual.
◆ getSize()
|
pure virtual |
Get target dimensions.
Implemented in Graphics::FileImageObject, Graphics::MemoryImageObject, Graphics::MipiDisplay, Graphics::Display::NullDevice, and Graphics::Display::Virtual.
The documentation for this class was generated from the following file: