4 #include "opengl/opengl.h"
6 extern GLFWwindow *win;
10 /* static test_* functions are going to be removed: just to test the shaders */
11 static void test_draw();
12 static void test_torus();
17 fprintf(stderr, "Failed to initialize GLFW.\n");
21 glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 4);
22 glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 5);
24 if(!(win = glfwCreateWindow(win_w, win_h, "glcow", 0, 0))) {
25 fprintf(stderr, "Failed to create window.\n");
28 glfwMakeContextCurrent(win);
37 glfwDestroyWindow(win);
44 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
45 glClearColor(0.5, 0.5, 0.5, 1.0);
49 static void test_draw()
51 /* this function is going to be removed, it's here only to test the shaders */