JuliaSets/src/Window.hpp
2022-02-18 16:06:16 +01:00

19 lines
370 B
C++

#pragma once
#include <cstdint>
#include <string>
#include <GLFW/glfw3.h>
class Window
{
public:
Window(uint32_t width, uint32_t height, const std::string& title);
~Window();
inline bool ShouldClose() { return glfwWindowShouldClose(handle); }
inline void MakeContextCurrent() { glfwMakeContextCurrent(handle); }
void Display();
private:
GLFWwindow* handle;
};