Changeset 0df3c9a in opengl-game for space-game.hpp


Ignore:
Timestamp:
Aug 29, 2019, 9:16:07 PM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
4eb4d0a
Parents:
eba8c0c
Message:

Create a basic SDL window

File:
1 edited

Legend:

Unmodified
Added
Removed
  • space-game.hpp

    reba8c0c r0df3c9a  
    22#define _SPACE_GAME_H
    33
     4#include "game-gui-sdl.hpp"
     5
     6const int SCREEN_WIDTH = 800;
     7const int SCREEN_HEIGHT = 600;
     8
    49class SpaceGame {
    510   public:
     11      SpaceGame();
     12      ~SpaceGame();
     13
    614      void run();
     15
     16   private:
     17      GameGui* gui;
     18      SDL_Window* window;
     19
     20      bool initWindow();
     21      void initVulkan();
     22      void mainLoop();
     23      void cleanup();
    724};
    825
Note: See TracChangeset for help on using the changeset viewer.