Create OpenGL context

This commit is contained in:
Derek Christ
2020-08-31 00:56:04 +02:00
parent cab3b9272d
commit 22eca24033
13 changed files with 261 additions and 11 deletions

22
Window.h Normal file
View File

@@ -0,0 +1,22 @@
#pragma once
#include <GLFW/glfw3.h>
class Window {
public:
Window();
~Window();
GLFWwindow * getGLFWwindow() { return window; }
static void framebuffer_size_callback(GLFWwindow* window, int width, int height);
private:
GLFWwindow *window;
int width, height;
};