Hello.
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.
Thank you
~mutex
~~~
#define GLFW_FLOATING GLFW_TRUE
#include <GLFW/glfw3.h>
#include <stdio.h>
void error_callback(int error, const char* description)
{
fprintf(stderr, "Error: %s\n", description);
}
int main(void) {
glfwSetErrorCallback(error_callback);
GLFWwindow* window;
if (!glfwInit())
return -1;
window = glfwCreateWindow(SCRW, SCRH, "redacted", NULL, NULL);
if (!window)
{
glfwTerminate();
return -1;
}
/* Make the window's context current */
glfwMakeContextCurrent(window);
/* Loop until the user closes the window */
while (!glfwWindowShouldClose(window))
{
/* Render here */
glClear(GL_COLOR_BUFFER_BIT);
/* Swap front and back buffers */
glfwSwapBuffers(window);
/* Poll for and process events */
glfwPollEvents();
}
glfwTerminate();
return 0;
}
~~~