X-Git-Url: http://git.mutantstargoat.com?a=blobdiff_plain;f=src%2Fopengl%2Fopengl.cc;h=a7ca8c1df118e134bf8426df260a58f329ee703e;hb=369d75c73bf926a6dbcf4d740c8664bbb401602a;hp=f05ea61e476b3cd122304c31ed130e92d3924197;hpb=64e2adbbab48320b6cd792e515b44cea112a3be4;p=demo diff --git a/src/opengl/opengl.cc b/src/opengl/opengl.cc index f05ea61..a7ca8c1 100644 --- a/src/opengl/opengl.cc +++ b/src/opengl/opengl.cc @@ -2,9 +2,11 @@ #include #include "opengl/opengl.h" -#include "common-ui.h" extern GLFWwindow *win; +extern int win_h; +extern int win_w; + bool init_opengl() { if(!glfwInit()) { @@ -37,4 +39,5 @@ void display_opengl() { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glClearColor(0.5, 0.5, 0.5, 1.0); + } \ No newline at end of file