mirror of
https://github.com/krislamo/Trololo
synced 2024-11-10 00:30:35 +00:00
27 lines
326 B
C++
27 lines
326 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;
|
|
}
|
|
|