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();
}
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)