X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp.hpp;h=cb71411de60e312231f0ac847580f8baf914d579;hb=f01ebd81ff047eb3209e25e183564f72f587915f;hp=0443942108906b14e59dcaf87b10ff17fae1a376;hpb=753be639d7d04f9f7415db9fc2721485c531f0a1;p=blank.git diff --git a/src/app.hpp b/src/app.hpp index 0443942..cb71411 100644 --- a/src/app.hpp +++ b/src/app.hpp @@ -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;