20 #ifndef FASTUIDRAW_GLYPH_CACHE_HPP 21 #define FASTUIDRAW_GLYPH_CACHE_HPP 84 unsigned int m_location, m_size;
138 uint32_t glyph_code,
bool upload_to_atlas =
true);
155 bool upload_to_atlas =
true);
171 bool upload_to_atlas =
true);
187 bool upload_to_atlas =
true);
all classes and functions of FastUIDraw are in the namespace fastuidraw.
FontBase provides an interface for a font to generate glyph rendering data.
unsigned int number_times_atlas_cleared(void)
A wrapper over a pointer to implement reference counting.
return_code
Enumeration for simple return codes for functions for success or failure.
A GlyphCache represents a cache of glyphs and manages the uploading of the data to a GlyphAtlas...
AllocationHandle allocate_data(c_array< const uint32_t > pdata)
Glyph fetch_glyph(GlyphRenderer render, const FontBase *font, uint32_t glyph_code, bool upload_to_atlas=true)
void delete_glyph(Glyph glyph)
unsigned int location(void) const
void fetch_glyphs(GlyphRenderer render, const FontBase *font, c_array< const uint32_t > glyph_codes, c_array< Glyph > out_glyphs, bool upload_to_atlas=true)
GlyphMetrics fetch_glyph_metrics(const FontBase *font, uint32_t glyph_code)
Defines default reference counting base classes.
A GlyphMetrics provides information on the metrics of a glyph, all the values are in units of the fon...
A Glyph is essentially an opaque pointer to data for rendering and performing layout of a glyph...
void deallocate_data(AllocationHandle h)
enum return_code add_glyph(Glyph glyph, bool upload_to_atlas=true)
Specifies how to render a glyph.
file reference_counted.hpp