draw
0.0.0
|
Factory and context owner. More...
#include <draw.h>
Public Member Functions | |
virtual | ~Renderer ()=default |
destruct renderer and owned context More... | |
virtual GeometryPtr | makeGeometry (Geometry::Vertices vertices, Geometry::Indices indices, Geometry::Primitive primitive)=0 |
make Geometry object More... | |
virtual ImagePtr | makeImage (const Size &size, Image::Format format, bool filter)=0 |
make Image object More... | |
virtual FontPtr | makeFont (const char *filePath, uint32_t letterSize)=0 |
make Font object More... | |
virtual ShapePtr | makeRect ()=0 |
make Shape object with rectangle Geometry More... | |
virtual ShapePtr | makeShape ()=0 |
make Shape object More... | |
virtual TextPtr | makeText ()=0 |
make Text object More... | |
virtual uint32_t | draw (const Color &clear)=0 |
clear the screen and repaint all visible objects More... | |
virtual void | resize (const Size &size)=0 |
set a new screen size More... | |
Factory and context owner.
To create an object of this type use draw::makeRenderer function.
NOTE: exceptions are disabled. 'Exceptions' section lists expected errors which you can obtain via draw::getLastError.
|
virtualdefault |
destruct renderer and owned context
Note: all created objects must be destroyed before the renderer object
|
pure virtual |
clear the screen and repaint all visible objects
|
pure virtual |
make Font object
draw::InvalidArgument | if filePath is invalid |
draw::InvalidArgument | if letterSize is less than Font::kMinLetterSize |
draw::InvalidFontFile | if font file is not exist or corrupted |
draw::IncompleteFontFile | if some alphabet's glyphs is not contained in the font file |
draw::OpenGLOutOfMemory | if is not enough memory to create internal OpenGL resources |
|
pure virtual |
make Geometry object
draw::InvalidArgument | if vertices.data is invalid |
draw::InvalidArgument | if vertices.count is zero or > Geometry::kMaxVertexCount |
draw::InvalidArgument | if indices.data is invalid |
draw::InvalidArgument | if indices.count is zero |
draw::OpenGLOutOfMemory | if is not enough memory to create internal OpenGL resources |
|
pure virtual |
make Image object
size | |
format | |
filter | use bilinear filtering or not |
draw::InvalidArgument | if size.width is zero or > Image::kMaxSize |
draw::InvalidArgument | if size.height is zero or > Image::kMaxSize |
draw::OpenGLOutOfMemory | if is not enough memory to create internal OpenGL resources |
|
pure virtual |
make Shape object with rectangle Geometry
draw::OpenGLOutOfMemory | if is not enough memory to create internal OpenGL resources |
|
pure virtual |
make Shape object
draw::OpenGLOutOfMemory | if is not enough memory to create internal OpenGL resources |
|
pure virtual |
make Text object
draw::OpenGLOutOfMemory | if is not enough memory to create internal OpenGL resources |
|
pure virtual |
set a new screen size