mirror of
https://github.com/guezoloic/LearnOpenGL.git
synced 2026-01-25 07:34:16 +00:00
feat(Game): re init Game class
This commit is contained in:
23
inc/game.hpp
Normal file
23
inc/game.hpp
Normal file
@@ -0,0 +1,23 @@
|
||||
#ifndef GAME_HPP
|
||||
#define GAME_HPP
|
||||
|
||||
#include "GLFW/glfw3.h"
|
||||
#include <string>
|
||||
|
||||
using namespace std;
|
||||
|
||||
class Game
|
||||
{
|
||||
private:
|
||||
int width;
|
||||
int height;
|
||||
const char *name;
|
||||
GLFWwindow *window;
|
||||
|
||||
public:
|
||||
Game(int width, int height, string name);
|
||||
~Game();
|
||||
void run();
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user