X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=vrfileman;a=blobdiff_plain;f=src%2Fmain.cc;h=04f85236714a049353d92b91d8b1ae0473a404ed;hp=7e700a6ca661f8110081bda457a2e91bf6d12806;hb=8afeabf06c79c755e5aaffa224e06c4abc92d833;hpb=65fa35533b5f8e26b57a31d5972a7649d71ad684 diff --git a/src/main.cc b/src/main.cc index 7e700a6..04f8523 100644 --- a/src/main.cc +++ b/src/main.cc @@ -55,6 +55,7 @@ int main(int argc, char **argv) } time_msec = app_get_msec(); + time_sec = (double)time_msec / 1000.0; while(SDL_PollEvent(&ev)) { process_event(&ev); if(quit) goto break_evloop; @@ -72,6 +73,16 @@ break_evloop: return 0; } +void app_resize(int x, int y) +{ + SDL_SetWindowSize(win, x, y); +} + +void app_fullscreen(bool fs) +{ + SDL_SetWindowFullscreen(win, fs ? SDL_WINDOW_FULLSCREEN_DESKTOP : 0); +} + void app_quit() { quit = true;