]> git.tdb.fi Git - libs/demoscene.git/blob - source/resources.h
bb86933e39b7ebaf734f983d17ee5bddaf42f09b
[libs/demoscene.git] / source / resources.h
1 #ifndef MSP_DEMOSCENE_RESOURCES_H_
2 #define MSP_DEMOSCENE_RESOURCES_H_
3
4 #include <msp/datafile/directorysource.h>
5 #include <msp/datafile/packsource.h>
6 #include <msp/gl/font.h>
7 #include <msp/gl/resources.h>
8 #include <msp/gl/technique.h>
9
10 namespace Msp {
11 namespace DemoScene {
12
13 class Resources: public Msp::GL::Resources
14 {
15 private:
16         Msp::DataFile::DirectorySource dir_source;
17         Msp::DataFile::PackSource pack_source;
18
19         const Msp::GL::Font *ui_font;
20         const Msp::GL::Technique *ui_text_technique;
21
22 public:
23         Resources(const std::string &);
24
25         const Msp::GL::Font &get_ui_font() const;
26         const Msp::GL::Technique &get_ui_text_technique() const;
27         void set_ui_text_resources(const std::string &, const std::string &);
28 };
29
30 } // namespace DemoScene
31 } // namespace Msp
32
33 #endif