155 |
Rect rect; |
Rect rect; |
156 |
QuadGlyph() {} |
QuadGlyph() {} |
157 |
QuadGlyph(Glyph glyph, Rect &rect) : glyph(glyph), rect(rect) { } |
QuadGlyph(Glyph glyph, Rect &rect) : glyph(glyph), rect(rect) { } |
158 |
bool valid() { return (bool)(rect.tex) ; } |
bool valid() { return rect.tex.isGood() ; } |
159 |
template<class Vertex> void draw(int &cx, int &cy, Vertex &vertex) { |
template<class Vertex> void draw(int &cx, int &cy, Vertex &vertex) { |
160 |
if(glyph.extents.width != 0) { |
if(glyph.extents.width != 0) { |
161 |
int cx1 = cx + glyph.extents.left; |
int cx1 = cx + glyph.extents.left; |