1 #ifndef BLANK_APP_APPLICATION_HPP_
2 #define BLANK_APP_APPLICATION_HPP_
5 #include "FrameCounter.hpp"
6 #include "RandomWalk.hpp"
7 #include "../audio/Audio.hpp"
8 #include "../graphics/Viewport.hpp"
9 #include "../ui/Interface.hpp"
10 #include "../world/World.hpp"
24 bool doublebuf = true;
25 int multisampling = 1;
27 Interface::Config interface = Interface::Config();
28 World::Config world = World::Config();
31 Application(Window &, const Config &);
34 Application(const Application &) = delete;
35 Application &operator =(const Application &) = delete;
37 /// run until user quits
39 /// evaluate a single frame of dt milliseconds
44 /// run for t milliseconds
46 /// run for n frames, assuming t milliseconds for each
47 void RunS(size_t n, size_t t);
49 /// process all events in SDL's queue
51 void Handle(const SDL_WindowEvent &);
52 /// integrate to the next step with dt milliseconds passed
54 /// push the current state to display
57 static Entity &MakeTestEntity(World &);
69 RandomWalk test_controller;