X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fresources.cpp;h=b1b129b757fd6a65139a9cfb00c6a8663e75af17;hb=75a16eae9eb2714f8112d46fa5b8f7908b6d2487;hp=b3ec3698d136a65268aa74c7115a09df7d218666;hpb=6d1e3e1b480be48b78e04fe22fa8924eb18ad994;p=libs%2Fgltk.git diff --git a/source/resources.cpp b/source/resources.cpp index b3ec369..b1b129b 100644 --- a/source/resources.cpp +++ b/source/resources.cpp @@ -18,12 +18,13 @@ Resources::Resources(): default_font(0) { add_keyword("graphic"); + add_keyword("texture"); add_creator(&Resources::create_font); add_creator(&Resources::create_texture); } -void Resources::set_path(const Path &p) +void Resources::set_path(const FS::Path &p) { path=p; } @@ -39,7 +40,7 @@ const GL::Font &Resources::get_default_font() const GL::Font *Resources::create_font(const string &name) { RefPtr fnt=new GL::Font; - DataFile::load(*fnt, (path/name).str(), *this); + DataFile::load(*fnt, (path/name).str(), *this); if(!default_font) default_font=fnt.get(); return fnt.release();