//headers files #include "SDLhelpfunctions.h" #include "SDL/SDL.h" #include "SDL/SDL_image.h" #include SDL_Event event; int main( int argc, char* args[] ) { bool quit = false; init(); //game loop while (quit = false) { if( SDL_Flip( screen ) == -1 ) { return 1; } while( quit == false ) { while( SDL_PollEvent( &event ) ) { if( event.type == SDL_QUIT ) { quit = true; } } } } return 0; }