1 #ifndef BLANK_APP_APPLICATION_HPP_
2 #define BLANK_APP_APPLICATION_HPP_
5 #include "FrameCounter.hpp"
7 #include "RandomWalk.hpp"
8 #include "../graphics/Viewport.hpp"
9 #include "../ui/Interface.hpp"
10 #include "../world/World.hpp"
22 bool doublebuf = true;
23 int multisampling = 1;
25 Interface::Config interface = Interface::Config();
26 World::Config world = World::Config();
29 explicit Application(const Config &);
31 Application(const Application &) = delete;
32 Application &operator =(const Application &) = delete;
34 /// run until user quits
36 /// evaluate a single frame of dt milliseconds
41 /// run for t milliseconds
43 /// run for n frames, assuming t milliseconds for each
44 void RunS(size_t n, size_t t);
46 /// process all events in SDL's queue
48 void Handle(const SDL_WindowEvent &);
49 /// integrate to the next step with dt milliseconds passed
51 /// push the current state to display
54 static Entity &MakeTestEntity(World &);
65 RandomWalk test_controller;