source: opengl-game/main-vulkan.cpp@ e1f88a9

feature/imgui-sdl
Last change on this file since e1f88a9 was 4994692, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 5 years ago

Change VulkanGame::addObject() to return a reference to the newly-created object

  • Property mode set to 100644
File size: 703 bytes
Line 
1#include "vulkan-game.hpp"
2
3#include <iostream>
4
5#include "consts.hpp"
6#include "crash-logger.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.