3 This file is part of libmspgltk
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #ifndef MSP_GLTK_RESOURCES_H_
9 #define MSP_GLTK_RESOURCES_H_
11 #include <msp/gl/font.h>
12 #include <msp/gl/texture.h>
13 #include <msp/datafile/collection.h>
14 #include <msp/fs/path.h>
22 Stores resources such as styles and graphics. All widgets require a Resources
23 instance in constructor.
25 class Resources: public DataFile::Collection
29 GL::Font *default_font;
32 class Loader: public Collection::Loader
40 void default_font(const std::string &);
41 void font(const std::string &);
42 void style(const std::string &);
47 void set_path(const FS::Path &);
48 const GL::Font &get_default_font() const;
50 GL::Font *create_font(const std::string &);
51 GL::Texture2D *create_texture(const std::string &);