#define GLFW_FLOATING GLFW_TRUE #include #include 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; }