#include <msp/gl/object.h>
#include <msp/gl/renderer.h>
#include <msp/gl/resources.h>
+#include <msp/gl/simplescene.h>
#include <msp/gl/technique.h>
#include <msp/gl/tests.h>
#include <msp/input/mouse.h>
resources.add("__.object", object);
}
else if(ext==".object")
+ renderable = load<GL::Object>(renderable_name);
+ else if(ext==".scene")
{
- object = load<GL::Object>(renderable_name);
- renderable = object;
+ GL::SimpleScene *scene = new GL::SimpleScene;
+ DataFile::load(*scene, renderable_name, resources);
+ renderable = scene;
}
else
throw usage_error("Unknown renderable type");