A GlyphRendererChooser provides an interface for choosing how to render glyphs depending on the current transformation matrix, Painter::transformation().
More...
#include <painter.hpp>
A GlyphRendererChooser provides an interface for choosing how to render glyphs depending on the current transformation matrix, Painter::transformation().
Definition at line 131 of file painter.hpp.
◆ choose_glyph_render() [1/2]
virtual GlyphRenderer fastuidraw::Painter::GlyphRendererChooser::choose_glyph_render |
( |
float |
logical_format_size, |
|
|
const float3x3 & |
transformation, |
|
|
vec2 |
viewport_size, |
|
|
float |
max_singular_value, |
|
|
float |
min_singular_value |
|
) |
| const |
|
pure virtual |
To be implemented by a derived class to choose what GlyphRender to use when the transformation matrix (see Painter::transformation()) does not have perspective.
- Parameters
-
logical_format_size | the format size at which the glyphs of a GlyphRun or GlyphSequence are formatted |
transformation | the transformation matrix from logical (i.e. item) coordinates to normalized device coordinates, i.e. the value of Painter::transformation(). |
viewport_size | width and height of the |
max_singular_value | the largest singluar value the transformation matrix concacted with the viewport transformation |
min_singular_value | the smallest singluar value the transformation matrix concacted with the viewport transformation |
◆ choose_glyph_render() [2/2]
virtual GlyphRenderer fastuidraw::Painter::GlyphRendererChooser::choose_glyph_render |
( |
float |
logical_format_size, |
|
|
const float3x3 & |
transformation, |
|
|
vec2 |
viewport_size |
|
) |
| const |
|
pure virtual |
To be implemented by a derived class to choose what GlyphRender to use when the transformation matrix (see Painter::transformation()) has perspective.
- Parameters
-
logical_format_size | the pixel size at which the glyphs of a GlyphRun or GlyphSequence are formatted |
transformation | the transformation matrix from logical (i.e. item) coordinates to normalized device coordinates, i.e. the value of Painter::transformation(). |
viewport_size | width and height of the |
The documentation for this class was generated from the following file:
- /home/kevin/fastuidraw.krogueintel/inc/fastuidraw/painter/painter.hpp