1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| void blitterSurface(images *images, position *position)
{
SDL_Rect pos;
pos = position->positionImageFondchateau;
SDL_BlitSurface(images->imageFondChateau, NULL, images->ecran, &pos);
pos = position->positionArbreVoiture;
SDL_BlitSurface(images->ArbreVoiture, NULL, images->ecran, &position->positionArbreVoiture);
SDL_BlitSurface(images->barreVie, NULL, images->ecran, &position->positionBarreVie);
SDL_BlitSurface(images->Max, NULL, images->ecran, &position->positionHeros);
SDL_BlitSurface(images->lampe, NULL, images->ecran, &position->positionLampe);
SDL_BlitSurface(images->lumiereLampe, NULL, images->ecran, &position->positionLumiereLampe);
pos = position->positionArbreVoiture;
SDL_BlitSurface(images->buisson, NULL, images->ecran, &pos);
SDL_BlitSurface(images->ombre_Noire, NULL, images->ecran, &position->positionOmbre);
SDL_BlitSurface(images->barreMenu, NULL, images->ecran, &position->positionBarreMenu);
SDL_BlitSurface(images->lampeMenu, NULL, images->ecran, &position->positionLampeMenu);
SDL_Flip(images->ecran);
} |
Partager