X-Git-Url: https://eleni.mutantstargoat.com/git/?p=demo;a=blobdiff_plain;f=src%2Fopengl%2Fopengl.cc;h=d2aea3b27b3574b74c43c08ebb8bccdacc6af06b;hp=f05ea61e476b3cd122304c31ed130e92d3924197;hb=826b0cf7adaf8b1dc4c37f57a4a98c79a3995e21;hpb=c47ed466e38c143cc9229c201d3bec42684ddd06 diff --git a/src/opengl/opengl.cc b/src/opengl/opengl.cc index f05ea61..d2aea3b 100644 --- a/src/opengl/opengl.cc +++ b/src/opengl/opengl.cc @@ -2,9 +2,15 @@ #include #include "opengl/opengl.h" -#include "common-ui.h" extern GLFWwindow *win; +extern int win_h; +extern int win_w; + +/* static test_* functions are going to be removed: just to test the shaders */ +static void test_draw(); +static void test_torus(); + bool init_opengl() { if(!glfwInit()) { @@ -37,4 +43,11 @@ void display_opengl() { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glClearColor(0.5, 0.5, 0.5, 1.0); + +} + +static void test_draw() +{ + /* this function is going to be removed, it's here only to test the shaders */ + } \ No newline at end of file