39 #include <GLFW/glfw3.h>
44 #include <boost/algorithm/string.hpp>
46 #include <glm/glm.hpp>
69 void setSize(
int width,
int height,
bool actuallySet);
74 void setPosition(
int xPos,
int yPos,
bool actuallySet);
104 static void key_callback(GLFWwindow* window,
int key,
int scancode,
int action,
int mods);
112 std::vector<EventRef> _currentEvents;
113 glm::vec2 _cursorPosition;
118 static std::string getKeyName(
int key);
119 static std::string getKeyValue(
int key,
int mods);
120 static std::string getActionName(
int action);
121 static std::string getButtonName(
int button);
122 static std::string getModsName(
int mods);
124 void initDebugCallback();
127 static void formatDebugOutputARB(
char outStr[],
size_t outStrSize, GLenum source, GLenum type, GLuint
id, GLenum severity,
const char *msg);
128 static void formatDebugOutputAMD(
char outStr[],
size_t outStrSize, GLenum category, GLuint
id, GLenum severity,
const char *msg);
129 static void CALLBACK debugCallbackARB(GLenum source, GLenum type, GLuint
id, GLenum severity, GLsizei length,
const GLchar *message, GLvoid *userParam);
130 static void CALLBACK debugCallbackAMD(GLuint
id, GLenum category, GLenum severity, GLsizei length,
const GLchar *message, GLvoid *userParam);