1
0
mirror of https://github.com/krislamo/Trololo synced 2024-11-10 00:30:35 +00:00
Trololo/main.cpp
2012-12-31 22:53:58 -08:00

28 lines
328 B
C++

#include "main.h"
int main(int argc, char* args[])
{
SDL_Event event;
int quit = 1;
SDL_Surface *screen;
screen = scrns::MainMenu();
if(screen == NULL)
return 1;
// Check if user quit
while(quit == 1)
{
while(SDL_PollEvent(&event))
{
if(event.type == SDL_QUIT)
quit = 0;
}
}
return 0;
}