Je suis les tuto du site du Zero et j´arrive au chapitre:
http://www.siteduzero.com/tuto-3-5432-1-afficher-des-images.html
Quand je fais se code sa marche pas:
"#include <stdlib.h>
- include <stdio.h>
- include <SDL/SDL.h>
int main(int argc, char *argv[])
{
SDL_Surface *ecran = NULL, *imageDeFond = NULL;
SDL_Rect positionFond;
positionFond.x = 0;
positionFond.y = 0;
SDL_Init(SDL_INIT_VIDEO);
ecran = SDL_SetVideoMode(800, 600, 32, SDL_HWSURFACE);
SDL_WM_SetCaption("Chargement d´images en SDL", NULL);
/* Chargement d´une image Bitmap dans une surface */
imageDeFond = SDL_LoadBMP("lac_en_montagne.bmp");
/* On blitte par-dessus l´écran */
SDL_BlitSurface(imageDeFond, NULL, ecran, &positionFond);
SDL_Flip(ecran);
pause();
SDL_FreeSurface(imageDeFond); /* On libère la surface */
SDL_Quit();
return EXIT_SUCCESS;
}
"
Je sais qu´il manque un truc devant mon int main mais je trouve pas c´est quoi
Merci de votre aide.