FastUIDraw
|
GlyphRenderData provides an interface to specify data used for rendering glyphs and to pack that data onto a GlyphAtlas. More...
#include <glyph_render_data.hpp>
Public Member Functions | |
virtual c_array< const c_string > | render_info_labels (void) const =0 |
virtual enum fastuidraw::return_code | upload_to_atlas (GlyphAtlasProxy &atlas_proxy, GlyphAttribute::Array &attributes, c_array< float > render_costs) const =0 |
GlyphRenderData provides an interface to specify data used for rendering glyphs and to pack that data onto a GlyphAtlas.
Definition at line 70 of file glyph_render_data.hpp.
|
pure virtual |
To be implemented by a derived class to return the strings used in GlyphRenderCostInfo::m_value; The pointer behind each of the string in the return c_array returned are required to stay valid even after the GlyphRenderData is deleted. The expectation is that the returned c_array is just c_array wrapping over a static constant array of string.
Implemented in fastuidraw::GlyphRenderDataRestrictedRays, fastuidraw::GlyphRenderDataBandedRays, and fastuidraw::GlyphRenderDataTexels.
|
pure virtual |
To be implemented by a derived class to upload data to a GlyphAtlas.
atlas_proxy | GlyphAtlasProxy to which to upload data |
attributes | (output) glyph attributes (see Glyph::attributes()) |
render_costs | (output) an array of size render_info().size() to which to write the render costs for each entry in render_info(). |
Implemented in fastuidraw::GlyphRenderDataRestrictedRays, fastuidraw::GlyphRenderDataBandedRays, and fastuidraw::GlyphRenderDataTexels.