8 #ifndef _WINDOW_GLFW_H_
9 #define _WINDOW_GLFW_H_
11 #include <glm/gtc/type_precision.hpp>
13 #include <GLFW/glfw3.h>
22 static void setSize(glm::i32vec2 s);
41 static void sizeCallback(GLFWwindow* w,
int width,
int height);
42 static void cursorCallback(GLFWwindow* w,
double xpos,
double ypos);
43 static void keyCallback(GLFWwindow* w,
int key,
int scancode,
int action,
int mods);
44 static void buttonCallback(GLFWwindow* w,
int button,
int action,
int mods);
45 static void scrollCallback(GLFWwindow* w,
double xoffset,
double yoffset);
static void swapBuffers()
static GLFWwindow * window
static void setFullscreen(bool f)
static void eventHandling()
static void cursorCallback(GLFWwindow *w, double xpos, double ypos)
static bool getFullscreen()
static void setClipboard(const char *s)
static void setMousegrab(bool g)
static void scrollCallback(GLFWwindow *w, double xoffset, double yoffset)
static void error(char *msg)
static KeyboardButton convertAsciiButton(int key)
static void buttonCallback(GLFWwindow *w, int button, int action, int mods)
static void errorCallback(int error, const char *desc)
static bool getTextInput()
static const char * getClipboard()
static bool getMousegrab()
static void sizeCallback(GLFWwindow *w, int width, int height)
static void setTextInput(bool t)
static void inputPositionCallback(int x, int y)
static void keyCallback(GLFWwindow *w, int key, int scancode, int action, int mods)
static glm::i32vec2 getSize()
static void setSize(glm::i32vec2 s)