2019-08-03 19:29:42 +00:00
|
|
|
#pragma once
|
|
|
|
|
2021-10-02 05:23:35 +00:00
|
|
|
#include <glad/glad.h>
|
|
|
|
#include <GLFW/glfw3.h>
|
2019-08-03 19:29:42 +00:00
|
|
|
#include <bitset>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
|
|
|
|
class WindowManager
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
void Init(
|
|
|
|
std::string const& windowTitle, unsigned int windowWidth, unsigned int windowHeight,
|
|
|
|
unsigned int windowPositionX, unsigned int windowPositionY);
|
|
|
|
|
|
|
|
void Update();
|
|
|
|
|
|
|
|
void ProcessEvents();
|
|
|
|
|
|
|
|
void Shutdown();
|
|
|
|
|
|
|
|
private:
|
2021-10-02 05:23:35 +00:00
|
|
|
GLFWwindow* mWindow;
|
2019-08-03 19:29:42 +00:00
|
|
|
|
|
|
|
std::bitset<8> mButtons;
|
|
|
|
};
|