aboutsummaryrefslogtreecommitdiffstats
path: root/src/window/Window.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/window/Window.hpp')
-rw-r--r--src/window/Window.hpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/window/Window.hpp b/src/window/Window.hpp
new file mode 100644
index 0000000..fe3b054
--- /dev/null
+++ b/src/window/Window.hpp
@@ -0,0 +1,26 @@
+#ifndef ENGINE_WINDOW_H
+#define ENGINE_WINDOW_H
+
+class GLFWwindow;
+
+class Window {
+ GLFWwindow *win;
+ int width, height;
+
+ Window(GLFWwindow *a_win, int a_w, int a_h) : win(a_win),
+ width(a_w), height(a_h) { }
+public:
+ ~Window() { }
+ GLFWwindow *GetWin() { return win; }
+
+ static Window *Initialize(int width, int height, const char *title);
+
+ void Resize(int w, int h);
+ void MakeContextCurrent();
+ void SetCursorMode(int mode);
+ bool IsShouldClose();
+ void SetShouldClose(int flag);
+ void SwapBuffers();
+};
+
+#endif /* ENGINE_WINDOW_H */