20 #ifndef FASTUIDRAW_GLYPH_ATTRIBUTE_HPP 21 #define FASTUIDRAW_GLYPH_ATTRIBUTE_HPP 48 right_corner_mask = 1,
57 bottom_left_corner = 0,
58 bottom_right_corner = right_corner_mask,
59 top_left_corner = top_corner_mask,
60 top_right_corner = right_corner_mask | top_corner_mask
71 rect_width_num_bits = 8,
72 rect_height_num_bits = 8,
77 rect_height_bit0 = rect_width_bit0 + rect_width_num_bits,
78 rect_x_bit0 = rect_height_bit0 + rect_height_num_bits,
79 rect_y_bit0 = rect_x_bit0 + rect_x_num_bits,
Represents an opaque array of GlyphAttribute values.
void pack_texel_rect(unsigned int width, unsigned int height)
all classes and functions of FastUIDraw are in the namespace fastuidraw.
void resize(unsigned int)
A GlyphCache represents a cache of glyphs and manages the uploading of the data to a GlyphAtlas...
GlyphAttribute & operator[](unsigned int)
c_array< const GlyphAttribute > data(void) const
A c_array is a wrapper over a C pointer with a size parameter to facilitate bounds checking and provi...
unsigned int size(void) const
vecN< uint32_t, 4 > m_data
A GlyphAttribute represents one Painter Attribute per glyph corner.
A Glyph is essentially an opaque pointer to data for rendering and performing layout of a glyph...
Class for which copy ctor and assignment operator are private functions.