1
0
mirror of https://github.com/krislamo/Trololo synced 2024-09-19 20:20:36 +00:00
Trololo/main.cpp

27 lines
326 B
C++
Raw Normal View History

#include "main.h"
2012-10-24 11:46:45 +00:00
int main(int argc, char* args[])
{
SDL_Event event;
int quit = 1;
2012-10-24 11:46:45 +00:00
SDL_Surface *screen;
screen = scrns::MainMenu();
2013-01-01 06:53:58 +00:00
if(screen == NULL)
return 1;
// Check if user quit
while(quit == 1)
{
while(SDL_PollEvent(&event))
2012-10-24 11:46:45 +00:00
{
if(event.type == SDL_QUIT)
quit = 0;
2012-10-24 11:46:45 +00:00
}
}
return 0;
2012-10-24 11:46:45 +00:00
}