FastUIDraw
|
A GlyphAttribute represents one Painter Attribute per glyph corner. More...
#include <glyph_attribute.hpp>
Classes | |
class | Array |
Represents an opaque array of GlyphAttribute values. More... | |
Public Types | |
enum | corner_masks { right_corner_mask = 1, top_corner_mask = 2 } |
enum | corner_t { bottom_left_corner = 0, bottom_right_corner = right_corner_mask, top_left_corner = top_corner_mask, top_right_corner = right_corner_mask | top_corner_mask } |
enum | rect_glyph_layout { rect_width_num_bits = 8, rect_height_num_bits = 8, rect_x_num_bits = 8, rect_y_num_bits = 8, rect_width_bit0 = 0, rect_height_bit0 = rect_width_bit0 + rect_width_num_bits, rect_x_bit0 = rect_height_bit0 + rect_height_num_bits, rect_y_bit0 = rect_x_bit0 + rect_x_num_bits } |
Public Member Functions | |
void | pack_texel_rect (unsigned int width, unsigned int height) |
Public Attributes | |
vecN< uint32_t, 4 > | m_data |
A GlyphAttribute represents one Painter Attribute per glyph corner.
Definition at line 38 of file glyph_attribute.hpp.
Enumeration to define bit-masks of if an index is on the right or left side and on the bottom or top side of a glyph.
Definition at line 46 of file glyph_attribute.hpp.
Enumeration naming the corners of a glyph.
Definition at line 55 of file glyph_attribute.hpp.
When packing 8-bit texel data into the store, each 32-bit value of the store holds a 2x2 block of 8-bit texels. This enumeration describes the packing an an attribute to get the texel data.
Definition at line 69 of file glyph_attribute.hpp.
void fastuidraw::GlyphAttribute::pack_texel_rect | ( | unsigned int | width, |
unsigned int | height | ||
) |
Pack into this GlyphAttribute via rect_glyph_layout to access texel data from the store.
vecN<uint32_t, 4> fastuidraw::GlyphAttribute::m_data |
The data of this single per-corner attribute, enumerated by corner_t.
Definition at line 159 of file glyph_attribute.hpp.