source:
opengl-game/main-vulkan.cpp@
58453c3
| Last change on this file since 58453c3 was 301c90a, checked in by , 5 years ago | |
|---|---|
|
|
| File size: 667 bytes | |
| Rev | Line | |
|---|---|---|
| [e8ebc76] | 1 | #include <iostream> |
| 2 | ||
| [5edbd58] | 3 | #include "consts.hpp" |
| [76d19a8] | 4 | #include "crash-logger.hpp" |
| 5 | ||
| [d8cf709] | 6 | #include "vulkan-game.hpp" |
| 7 | //#include "sdl-game.hpp" | |
| [aa7707d] | 8 | |
| [e8ebc76] | 9 | using namespace std; |
| 10 | ||
| [76d19a8] | 11 | int __main(int argc, char* argv[]); |
| 12 | ||
| [e8ebc76] | 13 | int main(int argc, char* argv[]) { |
| [4994692] | 14 | // TODO: Add date & time to the crash log |
| [76d19a8] | 15 | CrashLogger logger(__main, argc, argv); |
| 16 | ||
| 17 | exit(0); | |
| 18 | } | |
| 19 | ||
| 20 | int __main(int argc, char* argv[]) { | |
| [99d44b2] | 21 | cout << "Starting Vulkan Game..." << endl; |
| [e8ebc76] | 22 | |
| [7f60b28] | 23 | VulkanGame game; |
| [e8ebc76] | 24 | |
| 25 | try { | |
| [301c90a] | 26 | game.run(800, 600, GUI_FLAGS_WINDOW_FULLSCREEN); |
| [e8ebc76] | 27 | } catch (const exception& e) { |
| 28 | cerr << e.what() << endl; | |
| 29 | return EXIT_FAILURE; | |
| 30 | } | |
| 31 | ||
| 32 | cout << "Finished running the game" << endl; | |
| 33 | ||
| 34 | return EXIT_SUCCESS; | |
| [4994692] | 35 | } |
Note:
See TracBrowser
for help on using the repository browser.
![(please configure the [header_logo] section in trac.ini)](/medieval/chrome/site/your_project_logo.png)