6 #include <msp/parser/loader.h>
16 class Loader: public Msp::Parser::Loader
23 void texture(const std::string &);
28 void set_texture(const Texture2D &);
29 void add_glyph(wchar_t, float, float, float, float, float, float, float, float);
30 float get_string_width(const std::string &) const;
31 void draw_glyph(wchar_t);
32 void draw_string(const std::string &) const;
33 void draw_multiline(const std::string &) const;
38 class Loader: public Msp::Parser::Loader
42 Glyph &get_object() { return glyph; }
46 void texcoords(float, float, float, float);
47 void size(float, float);
57 typedef std::map<wchar_t, Glyph> GlyphMap;
63 void prepare(float *) const;
64 void draw_glyph(wchar_t, float *, float &) const;