JuliaSets/src/Window.hpp

19 lines
370 B
C++
Raw Normal View History

2022-02-18 15:06:16 +00:00
#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;
};