Comment fonctionne la fonction
void Blit(SDL_Surface* source,int x1,int y1,int x2,int y2,SDL_Surface* dest,int x3,int y3)
{
SDL_Rect S=Rect(x1,y1,x2-x1+1,y2-y1+1);
SDL_Rect D=Rect(x3,y3,0,0);
SDL_Rect* pS=&S;
if (x1<0)
pS=NULL;
SDL_BlitSurface(source,pS,dest,&D);
}
De JY² ?
Parce que j´aimerai bien m´en servir, mais rien n´apparait a mon écran :
if (ball.in == true)Blit(img_balle,0,0,0,0,screen,ball.x, ball.y);