diff -r 907929fa9b59 -r 9dbb9c8c115b ccdemos/common_sdl.h --- a/ccdemos/common_sdl.h Wed Apr 23 19:35:03 2008 +0200 +++ b/ccdemos/common_sdl.h Thu Apr 24 10:49:11 2008 +0200 @@ -52,7 +52,7 @@ } void loop_sdl(Raytracer &rt, Camera &cam, - void (*update_callback)() = NULL, void (*key_callback)(int, int) = NULL) + void (*update_callback)(Float*) = NULL, void (*key_callback)(int, int) = NULL) { SDL_Surface *screen; Float *render_buffer; @@ -156,7 +156,7 @@ if (move != 0.0) cam.move(move,0,0); if (update_callback != NULL) - update_callback(); + update_callback(render_buffer); update(rt, screen, render_buffer); } free(render_buffer);