GUI
main.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2017 by Maciej Wiecierzewski
3  */
4 
5 #include <iostream>
6 #include <stdexcpt.h>
7 
8 #define ALLEGRO_STATICLINK
9 
10 #include "App.h"
11 #include "loggerLocator.h"
12 
13 int main(int argc, char **argv)
14 {
15  App app(argc, argv);
16 
17  try
18  {
19  app.initAllegro();
20  app.init();
21  }
22  catch(std::exception &e)
23  {
24  getLogStr() << "App initialization error: " << e.what() << std::endl;
25  return -1;
26  }
27 
28  while(app.loop(true)) {};
29 
30  return 0;
31 }