source: opengl-game/opengl-game.hpp@ 5edbd58

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

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

  • Property mode set to 100644
File size: 476 bytes
RevLine 
[d02c25f]1#ifndef _OPENGL_GAME_H
2#define _OPENGL_GAME_H
3
4#include "game-gui-glfw.hpp"
5
6class OpenGLGame {
7 public:
8 OpenGLGame();
9 ~OpenGLGame();
10
[5edbd58]11 void run(unsigned int width, unsigned int height, unsigned char guiFlags);
[d02c25f]12
13 private:
[d8cb15e]14 GameGui* gui;
15 GLFWwindow* window;
16
[5edbd58]17 bool initWindow(unsigned int width, unsigned int height, unsigned char guiFlags);
[d8cb15e]18 void initOpenGL();
19 void mainLoop();
20 void cleanup();
[d02c25f]21};
22
23#endif // _OPENGL_GAME_H
Note: See TracBrowser for help on using the repository browser.