--- a/ccdemos/realtime.cc Fri May 02 13:27:47 2008 +0200
+++ b/ccdemos/realtime.cc Mon May 05 15:31:14 2008 +0200
@@ -14,18 +14,18 @@
rt.setMaxDepth(3);
rt.setTop(&top);
- Light light1(Vector(2.0, -5.0, -5.0), Colour(0.7, 0.3, 0.6));
+ Light light1(Vector(2.0f, -5.0f, -5.0f), Colour(0.7f, 0.3f, 0.6f));
light1.castShadows(false);
rt.addLight(&light1);
- Light light2(Vector(-2.0, 10.0, 2.0), Colour(0.4, 0.6, 0.3));
+ Light light2(Vector(-2.0f, 10.0f, 2.0f), Colour(0.4f, 0.6f, 0.3f));
light2.castShadows(false);
rt.addLight(&light2);
- Material mat_sph(Colour(1.0, 1.0, 1.0));
+ Material mat_sph(Colour(1.0f, 1.0f, 1.0f));
for (int y=0; y<10; y++)
for (int x=0; x<10; x++)
- rt.addShape(new Sphere(Vector(x*2-10, (Float)rand()/RAND_MAX*5.0, y*2-10), 0.45, &mat_sph));
+ rt.addShape(new Sphere(Vector(x*2-10, (Float)rand()/RAND_MAX*5.0f, y*2-10), 0.45f, &mat_sph));
rt.setCamera(&cam);
cam.setEye(Vector(0,0,10));
@@ -33,4 +33,6 @@
top.optimize();
loop_sdl(rt, cam);
+
+ return 0;
}