13 static Window *create(RenderEngine *);
14 static void windowPosCallback(GLFWwindow *, int, int);
15 static void framebufferSizeCallback(GLFWwindow *, int, int);
16 static void cursorPosCallback(GLFWwindow *, double, double);
18 void setTitle(const std::string &);
19 void setPos(int, int);
20 void setSize(int, int);
21 void toggleFullscreen();
24 bool shouldClose() const;
25 bool wasKeyDown(int) const;
26 glm::ivec2 getSize() const;
27 glm::ivec2 getCursorPos() const;
28 glm::ivec2 getCursorDelta();
33 static Window *singleton;
35 RenderEngine *render_engine;
39 int nfs_width, nfs_height, nfs_x, nfs_y;
40 int cursor_x, cursor_y, cursor_delta_x, cursor_delta_y;
42 void posInput(int, int);
43 void sizeInput(int, int);
44 void cursorInput(int, int);
46 Window(RenderEngine *);