8 #ifndef GLFW_WINDOW_HPP 9 #define GLFW_WINDOW_HPP 11 #include "SimpleGL_Export.h" 15 #define GLFW_INCLUDE_NONE 16 #include <GLFW/glfw3.h> 18 #include <glm/glm.hpp> 53 GLFWwindow* getHandle();
67 void setWidth(
int width);
81 void setHeight(
int height);
95 void setSize(glm::ivec2 size);
102 std::string getTitle();
109 void setTitle(std::string title);
112 void showInfoTitle();
132 virtual void swapBuffers() = 0;
156 glm::dvec2 getCursorPos();
This class provides a basic GLFW window.
Generic namespace for the SimpleGL framework.
This class wraps a GLFW key callback.
GLFWwindow * handle
The handle for the GLFW window.
std::string title
The title for the GLFW window.
glm::ivec2 size
The size of the drawing area.