KoiKoi/src/Window.hpp

21 lines
326 B
C++
Raw Normal View History

2022-01-08 15:54:36 +00:00
#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;
};