1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
int main(int argc, char *argv[])
{
SDL_Surface *ecran = NULL, *VIDE, *JAUNE, *ROUGE, *BLANC, *MAUVE, *PLUS, *MOINS, *texte = NULL; // le pointeur va stocker la surface de la fenetre ecran
SDL_Rect position;//definit une case
SDL_Rect positionEcran;
SDL_Event event;
int grille[20][20]= {0},
int continuer = 1, tailleBloc = 30, nbCol = 20, nbLignes = 20, col=0,ligne=0,i=0;
........./.....
affichEcran(ecran, col, nbLignes-1-ligne, couleur, nbLignes);
.........../.........
}
void affichEcran (SDL_Surface* ecran, int col, int ligne, int couleur, int nbLignes)
{
} |
Partager