Loader(Font &);
Loader(Font &, DataFile::Collection &);
- ~Loader();
Font &get_object() { return font; }
DataFile::Collection &get_collection();
private:
float w,h;
float off_x, off_y;
float advance;
- unsigned index;
};
typedef std::map<unsigned, Glyph> GlyphMap;
float ascent;
float descent;
GlyphMap glyphs;
- VertexArray varray;
- void create_glyph_vertices();
- void create_glyph_vertices(const Glyph &, VertexArrayBuilder &);
- void prepare_render() const;
- void draw_glyph(unsigned) const;
+ void create_glyph_vertices(const Glyph &, VertexBuilder &, float) const;
float get_glyph_advance(unsigned) const;
};