X-Git-Url: http://git.mutantstargoat.com?a=blobdiff_plain;f=src%2Fopengl%2Fopengl.cc;h=f6a7ceff2b37db30be07f4c971e421a448e373ef;hb=9148ff7614b1dc22fd5d1dcf6d74e2fb4ff13706;hp=367e283686d5690451ecc6ff0dc9800f3683909f;hpb=d1a2cf93cf54898bb4ad442da94fc61f2617cf9f;p=demo diff --git a/src/opengl/opengl.cc b/src/opengl/opengl.cc index 367e283..f6a7cef 100644 --- a/src/opengl/opengl.cc +++ b/src/opengl/opengl.cc @@ -1,4 +1,5 @@ #include +#include #include #include "gfxapi.h" @@ -12,6 +13,7 @@ static void clear(float r, float g, float b); static void viewport(int x, int y, int width, int height); static void zbuffer(bool enable); static void cull_face(Gfx_cull_face cf); +static void reshape(int width, int height) {}; bool init_opengl() { @@ -40,7 +42,9 @@ bool init_opengl() gfx_viewport = viewport; gfx_zbuffer = zbuffer; gfx_cull_face = cull_face; + gfx_reshape = reshape; + // glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); return true; } @@ -86,4 +90,4 @@ static void cull_face(Gfx_cull_face cf) glCullFace(GL_BACK); break; } -} \ No newline at end of file +}