source:
opengl-game/main-opengl.cpp@
7563b8a
| Last change on this file since 7563b8a was 2e77b3f, checked in by , 6 years ago | |
|---|---|
|
|
| File size: 595 bytes | |
| Rev | Line | |
|---|---|---|
| [d02c25f] | 1 | #include "opengl-game.hpp" |
| 2 | ||
| 3 | #include <iostream> | |
| 4 | ||
| [5edbd58] | 5 | #include "consts.hpp" |
| [76d19a8] | 6 | #include "crash-logger.hpp" |
| 7 | ||
| [d02c25f] | 8 | using namespace std; |
| 9 | ||
| [76d19a8] | 10 | int __main(int argc, char* argv[]); |
| 11 | ||
| [d02c25f] | 12 | int main(int argc, char* argv[]) { |
| [76d19a8] | 13 | CrashLogger logger(__main, argc, argv); |
| 14 | ||
| 15 | exit(0); | |
| 16 | } | |
| 17 | ||
| 18 | int __main(int argc, char* argv[]) { | |
| [d02c25f] | 19 | cout << "Starting OpenGL Game..." << endl; |
| 20 | ||
| 21 | OpenGLGame game; | |
| 22 | ||
| 23 | try { | |
| [5edbd58] | 24 | game.run(640, 480, GUI_FLAGS_WINDOW_FULLSCREEN); |
| [d02c25f] | 25 | } catch (const exception& e) { |
| 26 | cerr << e.what() << endl; | |
| 27 | return EXIT_FAILURE; | |
| 28 | } | |
| 29 | ||
| 30 | cout << "Finished running the game" << endl; | |
| 31 | ||
| 32 | return EXIT_SUCCESS; | |
| 33 | } |
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)