+Resources::Resources(const FS::Path &fn):
+ path(FS::dirname(fn)),
+ default_font(0)
+{
+ init();
+
+ DataFile::load(*this, fn.str());
+}
+
+void Resources::init()
+{
+ add_type<Graphic>().keyword("graphic");
+ add_type<GL::Texture2D>().keyword("texture").creator(&Resources::create_texture);
+ add_type<GL::Font>().creator(&Resources::create_font);