--- a/ccdemos/realtime.cc Sat Apr 19 18:00:27 2008 +0200
+++ b/ccdemos/realtime.cc Sun Apr 20 16:48:24 2008 +0200
@@ -16,16 +16,16 @@
Light light1(Vector3(2.0, -5.0, -5.0), Colour(0.7, 0.3, 0.6));
light1.castShadows(false);
- rt.addlight(&light1);
+ rt.addLight(&light1);
Light light2(Vector3(-2.0, 10.0, 2.0), Colour(0.4, 0.6, 0.3));
light2.castShadows(false);
- rt.addlight(&light2);
+ rt.addLight(&light2);
Material mat_sph(Colour(1.0, 1.0, 1.0));
for (int y=0; y<10; y++)
for (int x=0; x<10; x++)
- rt.addshape(new Sphere(Vector3(x*2-10, (Float)rand()/RAND_MAX*5.0, y*2-10), 0.45, &mat_sph));
+ rt.addShape(new Sphere(Vector3(x*2-10, (Float)rand()/RAND_MAX*5.0, y*2-10), 0.45, &mat_sph));
rt.setCamera(&cam);
cam.setEye(Vector3(0,0,10));