FastUIDraw
Public Member Functions | List of all members
fastuidraw::GlyphRenderData Class Referenceabstract

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>

Inheritance diagram for fastuidraw::GlyphRenderData:
Inheritance graph
[legend]

Public Member Functions

virtual c_array< const c_stringrender_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
 

Detailed Description

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.

Member Function Documentation

◆ render_info_labels()

virtual c_array<const c_string> fastuidraw::GlyphRenderData::render_info_labels ( void  ) const
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.

◆ upload_to_atlas()

virtual enum fastuidraw::return_code fastuidraw::GlyphRenderData::upload_to_atlas ( GlyphAtlasProxy atlas_proxy,
GlyphAttribute::Array attributes,
c_array< float >  render_costs 
) const
pure virtual

To be implemented by a derived class to upload data to a GlyphAtlas.

Parameters
atlas_proxyGlyphAtlasProxy 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.


The documentation for this class was generated from the following file: