X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fresources.h;h=ed0323bb97b8c089a9027d6745d9aa3fa1b8bfe4;hb=08fa4d11a07a52e62eb4e30730d2a2b9cdcb568d;hp=63dee766967164a36ae676c20fbbf54be9665bea;hpb=184dc3f14feab183bcd84eca40f89c143ecbe41f;p=libs%2Fdemoscene.git diff --git a/source/resources.h b/source/resources.h index 63dee76..ed0323b 100644 --- a/source/resources.h +++ b/source/resources.h @@ -7,6 +7,9 @@ #include #include +namespace Msp { +namespace DemoScene { + class Resources: public Msp::GL::Resources { private: @@ -16,12 +19,25 @@ private: const Msp::GL::Font *ui_font; const Msp::GL::Technique *ui_text_technique; +protected: + Resources(); public: Resources(const std::string &); +protected: + void init_sources(const std::string &); +private: + void init(); + static const DataFile::CollectionSource &get_builtin_source(); +public: + static Resources &get_builtins(); + 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 &); }; +} // namespace DemoScene +} // namespace Msp + #endif