diff -r 4b84e90325c5 -r 4fedf7290929 ccdemos/realtime_dragon.cc --- 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); }