int main(int argc, char* argv)
//initialize SDL and the video system.
if (SDL_Init( SDL_INIT_VIDEO)<0)
//signal SDL to change the text of the main window to SDL "Hello World".
SDL_WM_SetCaption("Hello world","Hello World");
//Create an SDL_Surface object, which represents, the game window.
//Load the SDL logo bitmap to a temporary surface
//Create the working SDL surface which matches the display format of the temporary surface.
SDL_Surface* bg= SDL_DisplayFormat(temp);
//Free the memory allocated to the temporary SDL_Surface.
//this is the main message loop if the game.
//Check message qeue for an event.
//If an event was found.
//check to see if the window was closed via the "x"
//Set the quit flag to true
//Check the keyboard to see if the ESC key was pressed.
//set our quit flag to true
//Draw the background sprite:
SDL_BlitSurface(bg, NULL, screen, NULL);
//Update the current window.
//Free the allocated memery for the background surface.
//Quit SDL and allow it to clean up everything.
//return control to windows with no errors.