mirror of
https://github.com/guezoloic/LearnOpenGL.git
synced 2026-01-25 12:34:15 +00:00
feat: rework few fonctions and change glew to glad
- game files deleted
This commit is contained in:
29
inc/game.hpp
29
inc/game.hpp
@@ -1,29 +0,0 @@
|
||||
#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(bool (*func)(Game *g));
|
||||
|
||||
GLFWwindow *getWindow();
|
||||
const char *getName();
|
||||
int getWidth();
|
||||
int getHeight();
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user