Newsletter
Liste des sujets

Fonction blit de JY²

N_Cortex
N_Cortex
Niveau 7
10 septembre 2005 à 15:29:39

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);

Sous forums
  • Aide à l'achat Mac
  • Internet
  • Macintosh
  • Création de sites web
  • Création de Jeux
  • Linux
  • Programmation
  • Steam Deck
  • Hardware
La vidéo du moment