added a vulkan util (vkutil.h/.cc)
[demo] / src / opengl / opengl.cc
index 9b220ab..f6a7cef 100644 (file)
@@ -13,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()
 {
@@ -41,6 +42,7 @@ 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;
@@ -88,4 +90,4 @@ static void cull_face(Gfx_cull_face cf)
                glCullFace(GL_BACK);
                break;
        }
-}
\ No newline at end of file
+}