source: opengl-game/main-vulkan.cpp@ 670c09a

feature/imgui-sdl
Last change on this file since 670c09a was aa7707d, checked in by Dmitry Portnoy <dmp1488@…>, 4 years ago

Update the Vulkan SDK version and get the latest code compiling on Windows

  • Property mode set to 100644
File size: 703 bytes
Line 
1#include <iostream>
2
3#include "consts.hpp"
4#include "crash-logger.hpp"
5
6#include "vulkan-game.hpp"
7
8using namespace std;
9
10int __main(int argc, char* argv[]);
11
12int main(int argc, char* argv[]) {
13 // TODO: Add date & time to the crash log
14 CrashLogger logger(__main, argc, argv);
15
16 exit(0);
17}
18
19int __main(int argc, char* argv[]) {
20 const int MAX_FRAMES_IN_FLIGHT = 2;
21
22 cout << "Starting Vulkan Game..." << endl;
23
24 VulkanGame game(MAX_FRAMES_IN_FLIGHT);
25
26 try {
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.