mirror of
https://github.com/kuhyx/engineer-thesis-WUT.git
synced 2026-07-04 15:03:11 +02:00
35 lines
707 B
C++
35 lines
707 B
C++
// Copyright [2023] Krzysztof Rudnicki
|
|
#ifndef BREAKOUT_GAME_HPP_
|
|
#define BREAKOUT_GAME_HPP_
|
|
|
|
#include <GLFW/glfw3.h>
|
|
|
|
#include "../dependencies/include/glad/glad.h"
|
|
|
|
// Represents the current state of the game
|
|
enum GameState {
|
|
GAME_ACTIVE,
|
|
GAME_MENU,
|
|
GAME_WIN
|
|
};
|
|
|
|
class Game
|
|
{
|
|
public:
|
|
// game state
|
|
GameState State;
|
|
bool Keys[1024];
|
|
unsigned int Width, Height;
|
|
// constructor/destructor
|
|
Game(unsigned int width, unsigned int height);
|
|
~Game();
|
|
// initialize game state (load all shaders/textures/levels)
|
|
void Init();
|
|
// game loop
|
|
void ProcessInput(float dt);
|
|
void Update(float dt);
|
|
void Render();
|
|
};
|
|
|
|
#endif // BREAKOUT_GAME_HPP_
|