X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fresources.h;h=87b8364148053581d142070d274fe24439f1e47c;hb=c8291177b545ec81930603a5915234a60296db51;hp=77987e88c29ad8a023c8adc7f6b6f9c98410aae6;hpb=9072069993704481d93b71add1f1ecda1009ae88;p=libs%2Fgltk.git diff --git a/source/resources.h b/source/resources.h index 77987e8..87b8364 100644 --- a/source/resources.h +++ b/source/resources.h @@ -4,6 +4,7 @@ #include #include #include +#include #include #include "graphic.h" #include "style.h" @@ -17,10 +18,6 @@ instance in constructor. */ class Resources: public DataFile::Collection { -private: - FS::Path path; - GL::Font *default_font; - public: class Loader: public Collection::Loader { @@ -34,8 +31,18 @@ public: void font(const std::string &); }; +private: + FS::Path path; + GL::Font *default_font; + DataFile::DirectorySource *dir_src; + public: Resources(); + Resources(const FS::Path &); +private: + void init(); +public: + ~Resources(); const GL::Font &get_default_font() const;