added a vulkan util (vkutil.h/.cc)
[demo] / src / main.cc
index 6b1050b..4e2c72f 100644 (file)
@@ -102,7 +102,7 @@ int main(int argc, char **argv)
        }
 
        //TODO
-       return 0;
+       //return 0;
 
        glfwSetKeyCallback(win, clbk_key);
        glfwSetCursorPosCallback(win, clbk_motion);
@@ -318,6 +318,7 @@ static void clbk_mouse(GLFWwindow *win, int bn, int action, int mods)
 
 static void clbk_reshape(GLFWwindow *win, int width, int height)
 {
+       gfx_reshape(width, height);
        gfx_viewport(0, 0, width, height);
        aspect = (float)width / (float)height;
        mprojection = calc_projection_matrix(45, aspect, 0.5, 1000.0);
@@ -388,4 +389,4 @@ static bool gen_poisson(std::vector<Vec2> &points, float min_dist, float radius)
                }
        }
        return false;
-}
\ No newline at end of file
+}