22 INLINE DynamicTextGlyph::
23 DynamicTextGlyph(
int character, DynamicTextPage *page,
int x,
int y,
24 int x_size,
int y_size,
int margin) :
28 _x_size(x_size), _y_size(y_size),
30 _top(0), _left(0), _bottom(0), _right(0),
31 _uv_top(0), _uv_left(0), _uv_bottom(0), _uv_right(0)
43 INLINE DynamicTextGlyph::
44 DynamicTextGlyph(
int character, PN_stdfloat advance) :
46 _page((DynamicTextPage *)NULL),
48 _x_size(0), _y_size(0),
60 INLINE DynamicTextGlyph::
61 DynamicTextGlyph(
const DynamicTextGlyph &) :
72 INLINE
void DynamicTextGlyph::
73 operator = (
const DynamicTextGlyph &) {
83 INLINE DynamicTextPage *DynamicTextGlyph::
96 INLINE
bool DynamicTextGlyph::
97 intersects(
int x,
int y,
int x_size,
int y_size)
const {
98 int hright = x + x_size;
99 int hbot = y + y_size;
101 int mright = _x + _x_size;
102 int mbot = _y + _y_size;
104 return !(x >= mright || hright <= _x ||
105 y >= mbot || hbot <= _y);
114 INLINE PN_stdfloat DynamicTextGlyph::
125 INLINE PN_stdfloat DynamicTextGlyph::
136 INLINE PN_stdfloat DynamicTextGlyph::
147 INLINE PN_stdfloat DynamicTextGlyph::
158 INLINE PN_stdfloat DynamicTextGlyph::
169 INLINE PN_stdfloat DynamicTextGlyph::
170 get_uv_left()
const {
180 INLINE PN_stdfloat DynamicTextGlyph::
181 get_uv_bottom()
const {
191 INLINE PN_stdfloat DynamicTextGlyph::
192 get_uv_right()
const {
A representation of a single glyph (character) from a font.