Mesh specialization for font glyphs.
More...
#include <spk_font_painter.hpp>
|
|
| FontMesh ()=default |
| | Builds an empty font mesh.
|
| | FontMesh (Font *p_font, const Font::Size &p_fontSize) |
| | Builds a font mesh using a font and size.
|
| const Font * | font () const |
| | Returns the font used by this mesh.
|
| Font::Bitmap & | bitmap () |
| | Returns the bitmap associated with the font.
|
| const Font::Bitmap & | bitmap () const |
| | Returns the bitmap associated with the font.
|
| const Font::Size & | fontSize () const |
| | Returns the configured font size.
|
|
| IMesh () |
| | Builds an empty mesh with a dynamic buffer set.
|
| IMesh & | operator= (const IMesh &p_other) |
| | Assigns polygon data from another mesh.
|
|
void | clear () |
| | Clears all polygons and notifies subscribers.
|
| void | append (const Polygon &p_shape) |
| | Appends a polygon and notifies subscribers.
|
| EditionContract | subscribeToEdition (const EditionJob &p_job) const |
| | Subscribes to mesh edition notifications.
|
| const std::vector< FontVertex > & | vertices () const |
| | Returns the cached vertex list for all polygons.
|
| const std::vector< Polygon > & | polygons () const |
| | Returns the stored polygons.
|
| const std::vector< uint32_t > & | indexes () const |
| | Returns the cached triangle indices for the mesh.
|
| IMesh & | operator+= (const IMesh &p_other) |
| | Appends polygons from another mesh and notifies subscribers.
|
| const std::shared_ptr< spk::OpenGL::BufferSetObject > & | bufferSet () const |
| | Returns the underlying buffer set.
|
|
void | synchronize () const |
| | Updates GPU buffers when mesh data has changed.
|
| IMesh | fuze (const IMesh &p_other) const |
| | Returns a new mesh by concatenating another mesh.
|
|
| void | _configureBufferSet () const override |
| | Configures the vertex buffer layout for font vertices.
|
|
|
using | Polygon |
| | Polygon type stored by the mesh.
|
|
using | EditionContract |
| | Contract type returned by edition subscriptions.
|
|
using | EditionJob |
| | Job type invoked on mesh edits.
|
Mesh specialization for font glyphs.
- See also
- FontVertex
Mesh specialization for font glyphs.
Definition spk_font_painter.hpp:51
const Font * font() const
Returns the font used by this mesh.
Definition spk_font_painter.cpp:303
◆ FontMesh()
| spk::FontMesh::FontMesh |
( |
Font * | p_font, |
|
|
const Font::Size & | p_fontSize ) |
Builds a font mesh using a font and size.
- Parameters
-
| p_font | Font used for glyph bitmap data. |
| p_fontSize | Requested font size. |
◆ _configureBufferSet()
| void spk::FontMesh::_configureBufferSet |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ bitmap() [1/2]
Returns the bitmap associated with the font.
- Returns
- Mutable font bitmap.
◆ bitmap() [2/2]
Returns the bitmap associated with the font.
- Returns
- Const font bitmap.
◆ font()
| const Font * spk::FontMesh::font |
( |
| ) |
const |
Returns the font used by this mesh.
- Returns
- Font pointer or nullptr.
◆ fontSize()
| const Font::Size & spk::FontMesh::fontSize |
( |
| ) |
const |
Returns the configured font size.
- Returns
- Font size.
The documentation for this struct was generated from the following files:
- includes/structure/graphics/painter/spk_font_painter.hpp
- srcs/structure/graphics/painter/spk_font_painter.cpp