feature/imgui-sdl
Last change
on this file since 187b0f5 was d8cf709, checked in by Dmitry Portnoy <dportnoy@…>, 4 years ago |
Change UIEvent to also include the original event from the UI library the game gui is currently using, such as SDL or GLFW.
|
-
Property mode
set to
100644
|
File size:
698 bytes
|
Line | |
---|
1 | #include <iostream>
|
---|
2 |
|
---|
3 | #include "consts.hpp"
|
---|
4 | #include "crash-logger.hpp"
|
---|
5 |
|
---|
6 | #include "vulkan-game.hpp"
|
---|
7 | //#include "sdl-game.hpp"
|
---|
8 |
|
---|
9 | using namespace std;
|
---|
10 |
|
---|
11 | int __main(int argc, char* argv[]);
|
---|
12 |
|
---|
13 | int main(int argc, char* argv[]) {
|
---|
14 | // TODO: Add date & time to the crash log
|
---|
15 | CrashLogger logger(__main, argc, argv);
|
---|
16 |
|
---|
17 | exit(0);
|
---|
18 | }
|
---|
19 |
|
---|
20 | int __main(int argc, char* argv[]) {
|
---|
21 | cout << "Starting Vulkan Game..." << endl;
|
---|
22 |
|
---|
23 | VulkanGame game;
|
---|
24 |
|
---|
25 | try {
|
---|
26 | game.run(800, 600, 0);
|
---|
27 | //game.run(800, 600, GUI_FLAGS_WINDOW_FULLSCREEN);
|
---|
28 | } catch (const exception& e) {
|
---|
29 | cerr << e.what() << endl;
|
---|
30 | return EXIT_FAILURE;
|
---|
31 | }
|
---|
32 |
|
---|
33 | cout << "Finished running the game" << endl;
|
---|
34 |
|
---|
35 | return EXIT_SUCCESS;
|
---|
36 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.