]> git.localhorst.tv Git - blank.git/blobdiff - src/app.hpp
control (some) application parameters via cmdline
[blank.git] / src / app.hpp
index 0443942108906b14e59dcaf87b10ff17fae1a376..cb71411de60e312231f0ac847580f8baf914d579 100644 (file)
@@ -23,9 +23,17 @@ public:
        Application(const Application &) = delete;
        Application &operator =(const Application &) = delete;
 
+       /// run until user quits
        void Run();
        void Loop(int dt);
 
+       /// run for n frames
+       void RunN(size_t n);
+       /// run for t milliseconds
+       void RunT(size_t t);
+       /// run for n frames, assuming t milliseconds for each
+       void RunS(size_t n, size_t t);
+
        void HandleEvents();
        void Update(int dt);
        void Render();
@@ -42,6 +50,7 @@ private:
        Camera cam;
        HUD hud;
        World world;
+       FPSController controller;
 
        OutlineModel outline;
        bool outline_visible;