]> git.localhorst.tv Git - blank.git/blobdiff - src/app.hpp
control (some) application parameters via cmdline
[blank.git] / src / app.hpp
index 0b0e64e46681c26d167c5214e2d8193c256ca0eb..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();