Opengl GLFW basic window

include

int main() { // Initialize GLFW glfwInit();

// Create a window
GLFWwindow* window = glfwCreateWindow(800, 600, "OpenGL Window", nullptr, nullptr);
if (window == nullptr)
{
    glfwTerminate();
    return -1;
}

// Make the window's context current
glfwMakeContextCurrent(window);

// Loop until the user closes the window
while (!glfwWindowShouldClose(window))
{
    // Render here

    // Swap front and back buffers
    glfwSwapBuffers(window);

    // Poll for and process events
    glfwPollEvents();
}

// Terminate GLFW
glfwTerminate();

return 0;

}