27 lines
637 B
C++
27 lines
637 B
C++
#pragma once
|
|
|
|
#include <GLFW/glfw3.h>
|
|
|
|
class Window {
|
|
|
|
public:
|
|
|
|
Window();
|
|
~Window();
|
|
|
|
GLFWwindow * getGLFWwindow() { return window; }
|
|
|
|
void setWindowDimensions(int width, int height) {this->width = width; this->height = height;}
|
|
|
|
int getWindowWidth() { return width; }
|
|
int getWindowHeight() { return height; }
|
|
|
|
private:
|
|
static void framebuffer_size_callback(GLFWwindow* window, int width, int height);
|
|
static void openGLDebugCallback(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message, const void* userParam);
|
|
|
|
GLFWwindow *window;
|
|
|
|
int width, height;
|
|
|
|
}; |