This function should update a list of SDL_Rects.
I’ve tried to use it but with no lucky; is there some errors
in my (horryble) code ?
SDL_Surface *screen,*figura;
SDL_Rect superfice[7];
int t=8;
.
.
.// inizializing sdl
.
screen=SDL_SetVideoMode(1024,768,16, HWSURFACE);
.
.
figura=IMG_Load(“ambarar.bmp”);
.
.
superfice[0].x=0;superfice[0].y=0;superfice[0].w=figura->w;
superfice[0].h=figura->h;
.
superfice[1].x=128;superfice[1].y=0;…
…
…
superfice[7].x=…
.
.
SDL_BlitSurface(figura,NULL,screen,superfice);
SDL_BlitSurface(figura,NULL,screen,&superfice[1]);
…
…
…
SDL_BlitSurface(figura,NULL,screen,&superfice[7]);
SDL_UpdateRects(screen,t,superfice);
SDL_Delay(5000);
.
.
.//freeing surfaces
.//quitting sdl