return 0;
}
+
+Resources::Loader::Loader(Resources &r):
+ DerivedObjectLoader<Resources, Collection::Loader>(r)
+{
+ add("scene", &Loader::scene);
+}
+
+void Resources::Loader::scene(const string &name)
+{
+ Scene::GenericLoader ldr(obj);
+ load_sub_with(ldr);
+ obj.add(name, ldr.get_scene());
+}
+
} // namespace GL
} // namespace Msp
*/
class Resources: virtual public DataFile::Collection
{
+public:
+ class Loader: public DataFile::DerivedObjectLoader<Resources, Collection::Loader>
+ {
+ public:
+ Loader(Resources &);
+
+ private:
+ void scene(const std::string &);
+ };
+
private:
TextureFilter default_tex_filter;
float default_tex_anisotropy;