#include <GLFW/glfw3.h>
#include <stdio.h>

int main() {
    if (!glfwInit()) {
        fprintf(stderr, "No se pudo inicializar GLFW\n");
        return -1;
    }
    GLFWwindow* window = glfwCreateWindow(800, 600, "Ventana de Prueba", NULL, NULL);
    if (!window) {
        glfwTerminate();
        fprintf(stderr, "No se pudo crear la ventana GLFW\n");
        return -1;
    }
    glfwMakeContextCurrent(window);
    while (!glfwWindowShouldClose(window)) {
        glClear(GL_COLOR_BUFFER_BIT);
        glfwSwapBuffers(window);
        glfwPollEvents();
    }
    glfwDestroyWindow(window);
    glfwTerminate();
    return 0;
}

