1 #ifndef BLANK_APP_APPLICATION_HPP_
2 #define BLANK_APP_APPLICATION_HPP_
5 #include "RandomWalk.hpp"
6 #include "../graphics/BlockLighting.hpp"
7 #include "../graphics/Camera.hpp"
8 #include "../graphics/DirectionalLighting.hpp"
9 #include "../ui/Interface.hpp"
10 #include "../world/World.hpp"
20 bool doublebuf = true;
21 int multisampling = 1;
23 Interface::Config interface = Interface::Config();
24 World::Config world = World::Config();
27 explicit Application(const Config &);
29 Application(const Application &) = delete;
30 Application &operator =(const Application &) = delete;
32 /// run until user quits
34 /// evaluate a single frame of dt milliseconds
39 /// run for t milliseconds
41 /// run for n frames, assuming t milliseconds for each
42 void RunS(size_t n, size_t t);
44 /// process all events in SDL's queue
46 /// integrate to the next step with dt milliseconds passed
48 /// push the current state to display
51 static Entity &MakeTestEntity(World &);
60 BlockLighting chunk_prog;
61 DirectionalLighting entity_prog;
67 RandomWalk test_controller;