feature/imgui-sdl
points-test
Last change
on this file since 15104a8 was 34bdf3a, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 5 years ago |
In vulkangame, create Vulkan synchronization objects for rendering
|
-
Property mode
set to
100644
|
File size:
657 bytes
|
Line | |
---|
1 | #include "vulkan-game.hpp"
|
---|
2 |
|
---|
3 | #include <iostream>
|
---|
4 |
|
---|
5 | #include "consts.hpp"
|
---|
6 | #include "crash-logger.hpp"
|
---|
7 |
|
---|
8 | using namespace std;
|
---|
9 |
|
---|
10 | int __main(int argc, char* argv[]);
|
---|
11 |
|
---|
12 | int main(int argc, char* argv[]) {
|
---|
13 | CrashLogger logger(__main, argc, argv);
|
---|
14 |
|
---|
15 | exit(0);
|
---|
16 | }
|
---|
17 |
|
---|
18 | int __main(int argc, char* argv[]) {
|
---|
19 | const int MAX_FRAMES_IN_FLIGHT = 2;
|
---|
20 |
|
---|
21 | cout << "Starting Vulkan Game..." << endl;
|
---|
22 |
|
---|
23 | VulkanGame game(MAX_FRAMES_IN_FLIGHT);
|
---|
24 |
|
---|
25 | try {
|
---|
26 | game.run(800, 600, GUI_FLAGS_WINDOW_FULLSCREEN);
|
---|
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;
|
---|
35 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.