source: opengl-game/main-vulkan.cpp@ 845a2cb

points-test
Last change on this file since 845a2cb was 845a2cb, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 5 years ago

test point size

  • Property mode set to 100644
File size: 677 bytes
RevLine 
[99d44b2]1#include "vulkan-game.hpp"
[e8ebc76]2
3#include <iostream>
4
[5edbd58]5#include "consts.hpp"
[76d19a8]6#include "crash-logger.hpp"
7
[e8ebc76]8using namespace std;
9
[76d19a8]10int __main(int argc, char* argv[]);
11
[e8ebc76]12int main(int argc, char* argv[]) {
[4994692]13 // TODO: Add date & time to the crash log
[76d19a8]14 CrashLogger logger(__main, argc, argv);
15
16 exit(0);
17}
18
19int __main(int argc, char* argv[]) {
[34bdf3a]20 const int MAX_FRAMES_IN_FLIGHT = 2;
21
[99d44b2]22 cout << "Starting Vulkan Game..." << endl;
[e8ebc76]23
[34bdf3a]24 VulkanGame game(MAX_FRAMES_IN_FLIGHT);
[e8ebc76]25
26 try {
[845a2cb]27 game.run(800, 600, 0);
[e8ebc76]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;
[4994692]36}
Note: See TracBrowser for help on using the repository browser.