- struct Glyph
- {
- class Loader: public Msp::DataFile::Loader
- {
- public:
- Loader(Glyph &);
- Glyph &get_object() { return glyph; }
- private:
- Glyph &glyph;
-
- void texcoords(float, float, float, float);
- };
-
- unsigned code;
- float x1,y1;
- float x2,y2;
- float w,h;
- float off_x, off_y;
- float advance;
- };
- typedef std::map<unsigned, Glyph> GlyphMap;
-
- const Texture2D *tex;
- float default_size;
- float ascent;
- float descent;
- GlyphMap glyphs;
-
- void create_glyph_vertices(const Glyph &, VertexBuilder &, float) const;