Open satoshinm opened 7 years ago
Allows toggling fullscreen in-game using "F11". Uses glfwSetWindowMonitor() which is new in glfw 3.2.x, so this PR also includes an update to glfw from 3.1.2 to 3.2.1 (copied from https://github.com/glfw/glfw/releases/download/3.2.1/glfw-3.2.1.zip + merged in https://github.com/satoshinm/NetCraft/commit/7e34bdd5bff92f85b4045384e1f1909f6ed73457)
Sorry for the size of the diff, but without updating glfw, implementing fullscreen toggle would be much less straightforward (without glfwSetWindowMonitor, the way to do it is destroy and recreate the window...)
Allows toggling fullscreen in-game using "F11". Uses glfwSetWindowMonitor() which is new in glfw 3.2.x, so this PR also includes an update to glfw from 3.1.2 to 3.2.1 (copied from https://github.com/glfw/glfw/releases/download/3.2.1/glfw-3.2.1.zip + merged in https://github.com/satoshinm/NetCraft/commit/7e34bdd5bff92f85b4045384e1f1909f6ed73457)