]> git.tdb.fi Git - libs/demoscene.git/blobdiff - source/resources.h
Define UI text font and technique in Resources instead of hardcoding
[libs/demoscene.git] / source / resources.h
index 3e0dbc9ef72afe36e0ece4657ff075d6dc366ed4..63dee766967164a36ae676c20fbbf54be9665bea 100644 (file)
@@ -3,7 +3,9 @@
 
 #include <msp/datafile/directorysource.h>
 #include <msp/datafile/packsource.h>
+#include <msp/gl/font.h>
 #include <msp/gl/resources.h>
+#include <msp/gl/technique.h>
 
 class Resources: public Msp::GL::Resources
 {
@@ -11,8 +13,15 @@ private:
        Msp::DataFile::DirectorySource dir_source;
        Msp::DataFile::PackSource pack_source;
 
+       const Msp::GL::Font *ui_font;
+       const Msp::GL::Technique *ui_text_technique;
+
 public:
        Resources(const std::string &);
+
+       const Msp::GL::Font &get_ui_font() const;
+       const Msp::GL::Technique &get_ui_text_technique() const;
+       void set_ui_text_resources(const std::string &, const std::string &);
 };
 
 #endif