Nathan wrote:
I was wondering if anybody has GLFW3 knowledge, I can't figure out how to make the window floating. I tried defining GLFW_FLOATING to GLFW_TRUE but still nothing.
#define GLFW_FLOATING GLFW_TRUE // ...
Don't redefine GLFW's constants. Window hints are intended to be set before creating the window with glfwWindowHint. Window creation hints are documented here: https://www.glfw.org/docs/latest/window.html#window_hints
glfwSetWindowHint(GLFW_FLOATING, GLFW_TRUE); GLFWwindow* window = glfwCreateWindow(...);
In the case of GLFW_FLOATING, it is also a window attribute and can be set after the window is created as well, if you wish. Window attributes are documented here: https://www.glfw.org/docs/latest/window_guide.html#window_attribs
GLFWwindow* window = glfwCreateWindow(...); if (window == NULL) { /* ... */ } glfwSetWindowAttrib(window, GLFW_FLOATING, GLFW_TRUE);