|
| AVectorDrawable (_< IImageFactory > factory) |
|
void | draw (IRenderer &render, const IDrawable::Params ¶ms) override |
| Called when the image needs to be displayed. It is assumed that the renderer is already set to the desired state (coordinates, color, etc.) More...
|
|
glm::ivec2 | getSizeHint () override |
|
bool | isDpiDependent () const override |
|
AImage | rasterize (glm::ivec2 imageSize) override |
| Converts possibly vector drawable to a raster image. More...
|
|
◆ draw()
Called when the image needs to be displayed. It is assumed that the renderer is already set to the desired state (coordinates, color, etc.)
Implements IDrawable.
◆ getSizeHint()
glm::ivec2 AVectorDrawable::getSizeHint |
( |
| ) |
|
|
overridevirtual |
- Returns
- Size of the stored image. Can be ignored by the renderer. If the size is unknown, it can be {0, 0}
Implements IDrawable.
◆ isDpiDependent()
bool AVectorDrawable::isDpiDependent |
( |
| ) |
const |
|
overridevirtual |
- Returns
- true if the size hint of this drawable needs to be multiplied by the DPI ratio
Reimplemented from IDrawable.
◆ rasterize()
AImage AVectorDrawable::rasterize |
( |
glm::ivec2 |
imageSize | ) |
|
|
overridevirtual |
Converts possibly vector drawable to a raster image.
- Parameters
-
- Returns
- rasterized image
TODO Unimplemented for all drawables except raster image and svg
Reimplemented from IDrawable.
The documentation for this class was generated from the following files: