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