Changeset 5edbd58 in opengl-game for opengl-game.hpp


Ignore:
Timestamp:
Sep 2, 2019, 5:23:40 PM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
301d0d4
Parents:
2beb6c7
Message:

For both openglgame and vulkangame, pass in the window width and height and a fullscreen flag to the run() function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • opengl-game.hpp

    r2beb6c7 r5edbd58  
    33
    44#include "game-gui-glfw.hpp"
    5 
    6 const int SCREEN_WIDTH = 800;
    7 const int SCREEN_HEIGHT = 600;
    85
    96class OpenGLGame {
     
    129      ~OpenGLGame();
    1310
    14       void run();
     11      void run(unsigned int width, unsigned int height, unsigned char guiFlags);
    1512
    1613   private:
     
    1815      GLFWwindow* window;
    1916
    20       bool initWindow();
     17      bool initWindow(unsigned int width, unsigned int height, unsigned char guiFlags);
    2118      void initOpenGL();
    2219      void mainLoop();
Note: See TracChangeset for help on using the changeset viewer.