Просто чёрное окно
#include <iostream>
#include <GLFW/glfw3.h>
int main()
{
try
{
if (!glfwInit())
{
throw std::exception("GLFW Init error!");
}
GLFWwindow* window = glfwCreateWindow(800, 600, "Engine", nullptr, nullptr);
while (!glfwWindowShouldClose(window))
{
glClearColor(1.0f, 0.0f, 0.0f, 1.0f);
glClear(GL_COLOR_BUFFER_BIT);
glfwSwapBuffers(window);
glfwPollEvents();
}
glfwDestroyWindow(window);
glfwTerminate();
} catch (const std::exception& e)
{
std::cout << "Error: " << e.what() << std::endl;
}
}