Problem in SDL
Hey i'm trying to use SDL, but it doesn't work.Can you tell me if the mistake is in the code. thanks.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
#include "SDL/SDL.h"
int main( int argc, char* args[] )
{
SDL_Surface* hello = NULL;
SDL_Surface* screen = NULL;
SDL_Init( SDL_INIT_EVERYTHING );
screen = SDL_SetVideoMode( 640, 480, 32, SDL_SWSURFACE );
hello = SDL_LoadBMP("hello.bmp");
SDL_BlitSurface( hello, NULL, screen, NULL );
SDL_Flip( screen );
SDL_Delay(2000);
SDL_FreeSurface( hello );
SDL_Quit();
return 0;
}
| |
Last edited on
Define "doesn't work".
Topic archived. No new replies allowed.