mirror of
https://github.com/guezoloic/LearnOpenGL.git
synced 2026-01-25 10:34:16 +00:00
feat(game): move main default config to game class
This commit is contained in:
21
src/game.hpp
Normal file
21
src/game.hpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef GAME_HPP
|
||||
#define GAME_HPP
|
||||
|
||||
#include "GL/glew.h"
|
||||
#include "GLFW/glfw3.h"
|
||||
|
||||
class Game
|
||||
{
|
||||
private:
|
||||
// window size
|
||||
int width, height;
|
||||
// window conf
|
||||
GLFWwindow *window = nullptr;
|
||||
|
||||
public:
|
||||
Game(const char *name, int width, int height);
|
||||
~Game();
|
||||
void run();
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user