4 #include "opengl/opengl.h"
7 extern GLFWwindow *win;
11 fprintf(stderr, "Failed to initialize GLFW.\n");
15 glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 4);
16 glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 5);
18 if(!(win = glfwCreateWindow(win_w, win_h, "glcow", 0, 0))) {
19 fprintf(stderr, "Failed to create window.\n");
22 glfwMakeContextCurrent(win);
31 glfwDestroyWindow(win);
38 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
39 glClearColor(0.5, 0.5, 0.5, 1.0);