X-Git-Url: http://git.mutantstargoat.com?a=blobdiff_plain;f=src%2Fmain.cc;h=4d0dd421ed59fdf201a74abcc6eea78f9f23c600;hb=72995482b98ff2a014ddd737131a0935ead89977;hp=69721c19692fb4b50c2a0696afb71275ee49b987;hpb=1e8963fc3f8191e328bbecd04cfbcba31d7d0bdf;p=demo diff --git a/src/main.cc b/src/main.cc index 69721c1..4d0dd42 100644 --- a/src/main.cc +++ b/src/main.cc @@ -1,4 +1,5 @@ #include +#include #include #include @@ -80,7 +81,7 @@ int main(int argc, char **argv) { Gfx_API api; - for(int i=0; i 0.0001 ? fog_density - 0.0001 : 0; - // break; + // fog_density = fog_density > 0.0001 ? fog_density - 0.0001 : 0; + // break; + + case 'P': + gfx_wireframe(true); + break; + + case 'F': + gfx_wireframe(false); + break; default: break; @@ -315,6 +326,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); @@ -385,4 +397,4 @@ static bool gen_poisson(std::vector &points, float min_dist, float radius) } } return false; -} \ No newline at end of file +}