source:
opengl-game/main-vulkan.cpp@
2beb6c7
Last change on this file since 2beb6c7 was 76d19a8, checked in by , 5 years ago | |
---|---|
|
|
File size: 642 bytes |
Rev | Line | |
---|---|---|
[99d44b2] | 1 | #include "vulkan-game.hpp" |
[e8ebc76] | 2 | |
3 | #include <iostream> | |
4 | ||
[76d19a8] | 5 | #include "crash-logger.hpp" |
6 | ||
[e8ebc76] | 7 | using namespace std; |
8 | ||
[76d19a8] | 9 | int __main(int argc, char* argv[]); |
10 | ||
[e8ebc76] | 11 | int main(int argc, char* argv[]) { |
[76d19a8] | 12 | CrashLogger logger(__main, argc, argv); |
13 | ||
14 | exit(0); | |
15 | } | |
16 | ||
17 | int __main(int argc, char* argv[]) { | |
[e8ebc76] | 18 | |
19 | #ifdef NDEBUG | |
20 | cout << "DEBUGGING IS OFF" << endl; | |
21 | #else | |
22 | cout << "DEBUGGING IS ON" << endl; | |
23 | #endif | |
24 | ||
[99d44b2] | 25 | cout << "Starting Vulkan Game..." << endl; |
[e8ebc76] | 26 | |
[99d44b2] | 27 | VulkanGame game; |
[e8ebc76] | 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.