ccdemos/realtime_dragon.cc
branchpyrit
changeset 71 4fedf7290929
parent 69 303583d2fb97
child 72 7c3f38dff082
--- a/ccdemos/realtime_dragon.cc	Tue Apr 15 17:12:50 2008 +0200
+++ b/ccdemos/realtime_dragon.cc	Sat Apr 19 18:00:27 2008 +0200
@@ -1,5 +1,5 @@
 #include "raytracer.h"
-#include "octree.h"
+#include "kdtree.h"
 
 #include "common_sdl.h"
 #include "common_ply.h"
@@ -7,7 +7,7 @@
 int main(int argc, char **argv)
 {
 	Raytracer rt;
-	Octree top;
+	KdTree top;
 	Camera cam;
 
 	rt.setMaxDepth(0);
@@ -30,5 +30,8 @@
 
 	top.optimize();
 
+	if (argc == 2 && strcmp(argv[1], "-buildonly") == 0)
+		return 0;
+
 	loop_sdl(rt, cam);
 }