Here is the part that waits for exit:
while(quit == false)
{
// While there's an event to handle
while(SDL_PollEvent(&event))
{
// If the user has Xed out the window
if(event.type == SDL_QUIT)
{
// Quit the program
quit = true;
}
}
}And yes I have used "bool quit = false;" but its a little further up.
I just cant seem to find anything wrong with the code, heres the line i use to compile:
i386-mingw32-g++ -I/usr/bin/cross-tools/include/SDL main.cpp -o output.exe -L/usr/bin/cross-tools/lib -lmingw32 -lSDLmain -lSDL -lSDL_image -mwindows
Also it compile with no errors what so ever.
Thanks for any help you can offer me, Wolfy87.

Help




Back to top









