X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=vrfileman;a=blobdiff_plain;f=src%2Fapp.cc;h=aaee8cb6e16d3b149b4e6e9f8af0f8dbdc8574ef;hp=81325f6f606e2840d468aa48a3769d39bb14f2b5;hb=f19edacadfd124dae0d6666a86fb1b6ca4df8969;hpb=05cc7dce02b656e633c880dcc55acdf370cb25c1 diff --git a/src/app.cc b/src/app.cc index 81325f6..aaee8cb 100644 --- a/src/app.cc +++ b/src/app.cc @@ -12,6 +12,7 @@ int win_width, win_height; float win_aspect; long time_msec; +double time_sec; Mat4 view_matrix; static bool should_swap; @@ -28,6 +29,9 @@ bool app_init(int argc, char **argv) if(!init_options(argc, argv, 0)) { return false; } + app_resize(opt.width, opt.height); + app_fullscreen(opt.fullscreen); + if(init_opengl() == -1) { return false; } @@ -125,6 +129,7 @@ void app_draw() draw_backdrop(); app_swap_buffers(); + app_redraw(); // since we added animation we need to redisplay even in non-VR mode } assert(glGetError() == GL_NO_ERROR); }