Added window
This commit is contained in:
commit
2a8b38ffc4
12 changed files with 187 additions and 0 deletions
20
src/Window.hpp
Normal file
20
src/Window.hpp
Normal 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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue