2012-12-31 22:58:44 +00:00
|
|
|
#include "main.h"
|
2012-10-24 11:46:45 +00:00
|
|
|
|
|
|
|
int main(int argc, char* args[])
|
|
|
|
{
|
2012-12-31 22:58:44 +00:00
|
|
|
SDL_Event event;
|
|
|
|
int quit = 1;
|
2012-10-24 11:46:45 +00:00
|
|
|
|
2012-12-31 22:58:44 +00:00
|
|
|
SDL_Surface *screen;
|
|
|
|
|
|
|
|
screen = scrns::MainMenu();
|
2012-10-25 05:55:35 +00:00
|
|
|
|
2012-12-31 22:58:44 +00:00
|
|
|
// Check if user quit
|
|
|
|
while(quit == 1)
|
|
|
|
{
|
|
|
|
while(SDL_PollEvent(&event))
|
2012-10-24 11:46:45 +00:00
|
|
|
{
|
2012-12-31 22:58:44 +00:00
|
|
|
if(event.type == SDL_QUIT)
|
|
|
|
quit = 0;
|
2012-10-24 11:46:45 +00:00
|
|
|
}
|
|
|
|
}
|
2012-12-31 22:58:44 +00:00
|
|
|
|
|
|
|
return 0;
|
2012-10-24 11:46:45 +00:00
|
|
|
}
|
|
|
|
|