GLFW - Show/Hide Window
Monkey Forums/Monkey Code/GLFW - Show/Hide Window
| ||
This code will allow you to show and hide (or minimise/maximise) your Window in GLFW. Works in v68 or better. Create the following in your modules\<modulename> folder: graphics.monkey: Strict Import mojo #if TARGET = "glfw" Import "native/graphics.${TARGET}.${LANG}" Extern Function ShowWindow:Void() Function HideWindow:Void() Public #end native\graphics.glfw.cpp static void ShowWindow() { glfwRestoreWindow(); } static void HideWindow() { glfwIconifyWindow(); } |