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/datafile/directorysource.h>
8 #include <msp/fs/path.h>
16 Stores resources such as styles and graphics. All widgets require a Resources
17 instance in constructor.
19 class Resources: public DataFile::Collection
22 class Loader: public Collection::Loader
30 void default_font(const std::string &);
31 void font(const std::string &);
36 GL::Font *default_font;
37 DataFile::DirectorySource *dir_src;
41 Resources(const FS::Path &);
47 const GL::Font &get_default_font() const;
50 GL::Texture2D *create_texture(const std::string &);