source: opengl-game/main-opengl.cpp@ 9546928

feature/imgui-sdl points-test
Last change on this file since 9546928 was 76d19a8, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 5 years ago

Wrap all the code in openglgame and vulkangame in a CrashLogger

  • Property mode set to 100644
File size: 642 bytes
Line 
1#include "opengl-game.hpp"
2
3#include <iostream>
4
5#include "crash-logger.hpp"
6
7using namespace std;
8
9int __main(int argc, char* argv[]);
10
11int main(int argc, char* argv[]) {
12 CrashLogger logger(__main, argc, argv);
13
14 exit(0);
15}
16
17int __main(int argc, char* argv[]) {
18
19#ifdef NDEBUG
20 cout << "DEBUGGING IS OFF" << endl;
21#else
22 cout << "DEBUGGING IS ON" << endl;
23#endif
24
25 cout << "Starting OpenGL Game..." << endl;
26
27 OpenGLGame game;
28
29 try {
30 game.run();
31 } catch (const exception& e) {
32 cerr << e.what() << endl;
33 return EXIT_FAILURE;
34 }
35
36 cout << "Finished running the game" << endl;
37
38 return EXIT_SUCCESS;
39}
Note: See TracBrowser for help on using the repository browser.