diff -r 76b254ce92cf -r 6493fb65f0b1 ccdemos/common_sdl.h --- a/ccdemos/common_sdl.h Wed Mar 19 17:18:59 2008 +0100 +++ b/ccdemos/common_sdl.h Wed Mar 26 00:52:27 2008 +0100 @@ -21,7 +21,7 @@ sprintf(s, "fps:%3d.%1d", fp10s/10, fp10s%10); SDL_WM_SetCaption(s, NULL); - rt.render(w, h, render_buffer); + rt.render(); if (SDL_MUSTLOCK(screen)) if (SDL_LockSurface(screen) < 0) @@ -59,6 +59,8 @@ pyrit_verbosity = 0; render_buffer = (Float *) malloc(w*h*3*sizeof(Float)); + DefaultSampler sampler(render_buffer, w, h); + rt.setSampler(&sampler); if( SDL_Init(SDL_INIT_VIDEO) < 0 ) { fprintf(stderr, "Couldn't initialize SDL: %s\n", SDL_GetError()); @@ -83,6 +85,7 @@ w = (event.resize.w-1) / 8 * 8 + 8; h = (event.resize.h-1) / 8 * 8 + 8; render_buffer = (Float *) realloc(render_buffer, w*h*3*sizeof(Float)); + sampler.resetBuffer(render_buffer, w, h); screen = SDL_SetVideoMode(w, h, 32, SDL_HWSURFACE|SDL_DOUBLEBUF|SDL_RESIZABLE); break; case SDL_KEYDOWN: