Added window

This commit is contained in:
Lauchmelder 2022-01-08 16:54:36 +01:00
commit 2a8b38ffc4
12 changed files with 187 additions and 0 deletions

20
src/Window.hpp Normal file
View file

@ -0,0 +1,20 @@
#pragma once
#include <string>
#include <GLFW/glfw3.h>
class Window
{
public:
Window(int width, int height, const std::string& title);
~Window();
inline bool IsValid() { return valid; }
inline bool ShouldClose() { return glfwWindowShouldClose(window); }
void Display();
private:
bool valid;
GLFWwindow* window;
};