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

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

Move the debug status output from the main functions to the openglgame and vulkangame classes

  • Property mode set to 100644
File size: 595 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 CrashLogger logger(__main, argc, argv);
14
15 exit(0);
16}
17
18int __main(int argc, char* argv[]) {
19 cout << "Starting Vulkan Game..." << endl;
20
21 VulkanGame game;
22
23 try {
24 game.run(800, 600, GUI_FLAGS_WINDOW_FULLSCREEN);
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.