- if(!scene.load("data/spot/spot_control_mesh.obj")) {
- fprintf(stderr, "Failed to load scene.\n");
+ scene_ground = new Scene;
+ if(!scene_ground->load("data/ground.obj")) {
+ fprintf(stderr, "Failed to load scene: ground.obj.\n");
+ return false;
+ }
+
+ scene_cow = new Scene;
+ if(!scene_cow->load("data/spot/spot.obj")) {
+ fprintf(stderr, "Failed to load scene: spot.obj.\n");
+ return false;
+ }
+
+ rground = new Renderer;
+ rground->camera = camera;
+ rground->scene = scene_ground;
+
+ if(!rground->create()) {
+ fprintf(stderr, "Failed to create default renderer.\n");
+ return false;
+ }
+
+ rcow = new Renderer;
+ rcow->camera = camera;
+ rcow->scene = scene_cow;
+
+ if(!rcow->create()) {
+ fprintf(stderr, "Failed to create renderer for cows.\n");