source: opengl-game/space-game.hpp@ 4eb4d0a

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

Create a basic SDL window

  • Property mode set to 100644
File size: 405 bytes
RevLine 
[e8ebc76]1#ifndef _SPACE_GAME_H
2#define _SPACE_GAME_H
3
[0df3c9a]4#include "game-gui-sdl.hpp"
5
6const int SCREEN_WIDTH = 800;
7const int SCREEN_HEIGHT = 600;
8
[e8ebc76]9class SpaceGame {
10 public:
[0df3c9a]11 SpaceGame();
12 ~SpaceGame();
13
[e8ebc76]14 void run();
[0df3c9a]15
16 private:
17 GameGui* gui;
18 SDL_Window* window;
19
20 bool initWindow();
21 void initVulkan();
22 void mainLoop();
23 void cleanup();
[e8ebc76]24};
25
26#endif // _SPACE_GAME_H
Note: See TracBrowser for help on using the repository browser.