Painter that renders FontMesh instances.
More...
#include <spk_font_painter.hpp>
|
|
| FontPainter () |
| | Builds a font painter with its rendering pipeline.
|
| void | setLayer (const float &p_layer) |
| | Sets the layer value used during rendering.
|
| const float & | layer () const |
| | Returns the current layer value.
|
| void | setMesh (const FontMesh *p_mesh) override |
| | Sets the font mesh to render.
|
| void | setGlyphColor (const spk::Color &p_color) |
| | Sets the glyph fill color.
|
| void | setOutlineColor (const spk::Color &p_color) |
| | Sets the glyph outline color.
|
| void | setColors (const spk::Color &p_glyphColor, const spk::Color &p_outlineColor) |
| | Sets glyph and outline colors together.
|
| const spk::Color & | glyphColor () const |
| | Returns the current glyph color.
|
| const spk::Color & | outlineColor () const |
| | Returns the current outline color.
|
| const Mesh * | mesh () const |
| | Returns the currently bound mesh.
|
|
void | render () |
| | Renders the current mesh when available.
|
Painter that renders FontMesh instances.
- See also
- FontMesh
Painter that renders FontMesh instances.
Definition spk_font_painter.hpp:248
void setLayer(const float &p_layer)
Sets the layer value used during rendering.
Definition spk_font_painter.cpp:359
void setGlyphColor(const spk::Color &p_color)
Sets the glyph fill color.
Definition spk_font_painter.cpp:395
◆ glyphColor()
| const spk::Color & spk::FontPainter::glyphColor |
( |
| ) |
const |
Returns the current glyph color.
- Returns
- Glyph color.
◆ layer()
| const float & spk::FontPainter::layer |
( |
| ) |
const |
Returns the current layer value.
- Returns
- Layer value.
◆ outlineColor()
| const spk::Color & spk::FontPainter::outlineColor |
( |
| ) |
const |
Returns the current outline color.
- Returns
- Outline color.
◆ setColors()
| void spk::FontPainter::setColors |
( |
const spk::Color & | p_glyphColor, |
|
|
const spk::Color & | p_outlineColor ) |
Sets glyph and outline colors together.
- Parameters
-
| p_glyphColor | Glyph color. |
| p_outlineColor | Outline color. |
◆ setGlyphColor()
| void spk::FontPainter::setGlyphColor |
( |
const spk::Color & | p_color | ) |
|
Sets the glyph fill color.
- Parameters
-
◆ setLayer()
| void spk::FontPainter::setLayer |
( |
const float & | p_layer | ) |
|
Sets the layer value used during rendering.
- Parameters
-
◆ setMesh()
| void spk::FontPainter::setMesh |
( |
const FontMesh * | p_mesh | ) |
|
|
overridevirtual |
◆ setOutlineColor()
| void spk::FontPainter::setOutlineColor |
( |
const spk::Color & | p_color | ) |
|
Sets the glyph outline color.
- Parameters
-
The documentation for this class was generated from the following files:
- includes/structure/graphics/painter/spk_font_painter.hpp
- srcs/structure/graphics/painter/spk_font_painter.cpp