Create OpenGL context
This commit is contained in:
22
Window.h
Normal file
22
Window.h
Normal 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;
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user