-GL::Font *Resources::create_font(const string &name)
-{
- RefPtr<GL::Font> fnt=new GL::Font;
- DataFile::load<GL::Font, Resources &>(*fnt, (path/name).str(), *this);
- if(!default_font)
- default_font=fnt.get();
- return fnt.release();
-}
-
-GL::Texture2D *Resources::create_texture(const string &name)
-{
- RefPtr<GL::Texture2D> tex=new GL::Texture2D;
- tex->load_image((path/name).str());
- tex->set_min_filter(GL::LINEAR);
- return tex.release();
-}
-