1 #ifndef MSP_GLTK_RESOURCES_H_
2 #define MSP_GLTK_RESOURCES_H_
4 #include <msp/gl/font.h>
5 #include <msp/gl/texture.h>
6 #include <msp/datafile/collection.h>
7 #include <msp/fs/path.h>
15 Stores resources such as styles and graphics. All widgets require a Resources
16 instance in constructor.
18 class Resources: public DataFile::Collection
22 GL::Font *default_font;
25 class Loader: public Collection::Loader
33 void default_font(const std::string &);
34 void font(const std::string &);
35 void style(const std::string &);
39 Resources(const FS::Path &);
44 void set_path(const FS::Path &);
45 const GL::Font &get_default_font() const;
47 GL::Font *create_font(const std::string &);
48 GL::Texture2D *create_texture(const std::string &);