pulsing grid
[vrfileman] / src / main.cc
index 7e700a6..ae84abd 100644 (file)
@@ -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(int fs)
+{
+       SDL_SetWindowFullscreen(win, fs ? SDL_WINDOW_FULLSCREEN_DESKTOP : 0);
+}
+
 void app_quit()
 {
        quit = true;