Bon ben ecoute tu vas fefaire ton projet sous la dernière version parce que Dev-C++ 4 a pas l´air de supporter la SDL.
Alors tu recommence ton projet sous la 5 ( 4.9.9.1 ou 2).
Voila.
Entre ce code :
- include < sdl/sdl.h>
SDL_Surface *Screen, *bitmap;
bool bQuit=false;
SDL_Event e;
Uint8 *keystate;
int main(int argc, char *argv[])
{
SDL_Init(SDL_INIT_VIDEO);
Screen = SDL_SetVideoMode(640,480,16,SDL_HWSURFACE);
SDL_WM_SetCaption("SDL",NULL);
bitmap = SDL_LoadBMP("image.bmp");
while ( !bQuit)
{
SDL_FillRect(Screen,NULL,0);
SDL_BlitSurface(bitmap,NULL,Screen,NULL);
SDL_Flip(Screen);
if ( SDL_PollEvent(&) && e.type==SDL_QUIT)bQuit=true;
keystate=SDL_GetKeyState(NULL);
if ( keystate[SDLK_ESCAPE])bQuit=true;
}
SDL_Quit();
return 0;
}