X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FApplication.hpp;h=99f0dc4fbad0b168249c20e18fc97797a19524ad;hb=c04ea5a6f67d446ea29aa2e88dc4c666956d7732;hp=c8236ffbf27a72281364c87a69454103845a358a;hpb=b7d09e1e35ef90282c97509e0020b20db3c7ea9f;p=blank.git diff --git a/src/app/Application.hpp b/src/app/Application.hpp index c8236ff..99f0dc4 100644 --- a/src/app/Application.hpp +++ b/src/app/Application.hpp @@ -31,6 +31,7 @@ public: /// run until user quits void Run(); + /// evaluate a single frame of dt milliseconds void Loop(int dt); /// run for n frames @@ -40,8 +41,11 @@ public: /// run for n frames, assuming t milliseconds for each void RunS(size_t n, size_t t); + /// process all events in SDL's queue void HandleEvents(); + /// integrate to the next step with dt milliseconds passed void Update(int dt); + /// push the current state to display void Render(); static Entity &MakeTestEntity(World &);