]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/resources.cpp
Adapt to DataFile changes
[libs/gltk.git] / source / resources.cpp
index f146bbc9a281b6f19423005dd6d45a3b5d5550ed..3b0f4f9154648b88d7254cb6f575854de341193b 100644 (file)
@@ -43,7 +43,7 @@ GL::Font *Resources::create_font(const string &name)
 GL::Texture2D *Resources::create_texture(const string &name)
 {
        RefPtr<GL::Texture2D> tex=new GL::Texture2D;
-       tex->image((path/(name+".png")).str());
+       tex->load_image((path/(name+".png")).str());
        tex->set_min_filter(GL::LINEAR);
        return tex.release();
 }
@@ -59,7 +59,7 @@ Resources::Loader::Loader(Resources &r):
 
 void Resources::Loader::default_font(const string &name)
 {
-       res.default_font=&res.get<GL::Font>(name);
+       res.default_font=res.get<GL::Font>(name);
 }
 
 void Resources::Loader::font(const string &name)