aboutsummaryrefslogtreecommitdiffstats
path: root/src/window
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2021-04-11 13:24:59 +0000
committerJoursoir <chat@joursoir.net>2021-04-11 13:24:59 +0000
commit107d4ac8dc78c6919169411989fe4ebe41cd6c49 (patch)
tree4588d0de6114bc5d3f2c969a0700d1544b3dcbec /src/window
parent9b3892b7f430e6694e944e2e3f162f3903ae8d89 (diff)
downloadspace-simulator-107d4ac8dc78c6919169411989fe4ebe41cd6c49.tar.gz
space-simulator-107d4ac8dc78c6919169411989fe4ebe41cd6c49.tar.bz2
space-simulator-107d4ac8dc78c6919169411989fe4ebe41cd6c49.zip
Window: add getter for window size
Diffstat (limited to 'src/window')
-rw-r--r--src/window/Window.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/window/Window.hpp b/src/window/Window.hpp
index 4457898..3c0b708 100644
--- a/src/window/Window.hpp
+++ b/src/window/Window.hpp
@@ -12,6 +12,8 @@ class Window {
public:
~Window() { }
GLFWwindow *GetWin() { return win; }
+ void GetWinSize(int &w, int &h)
+ { w = width; h = height; }
static Window *Initialize(int width, int height, const char *title);