1 #ifndef BLANK_UI_INTERFACE_HPP_
2 #define BLANK_UI_INTERFACE_HPP_
5 #include "../app/FPSController.hpp"
6 #include "../app/IntervalTimer.hpp"
7 #include "../model/geometry.hpp"
8 #include "../model/OutlineModel.hpp"
9 #include "../world/Block.hpp"
12 #include <glm/glm.hpp>
18 class DirectionalLighting;
25 float move_velocity = 0.005f;
26 float pitch_sensitivity = -0.0025f;
27 float yaw_sensitivity = -0.001f;
29 bool keyboard_disabled = false;
30 bool mouse_disabled = false;
31 bool visual_disabled = false;
34 Interface(const Config &, World &);
36 void HandlePress(const SDL_KeyboardEvent &);
37 void HandleRelease(const SDL_KeyboardEvent &);
38 void Handle(const SDL_MouseMotionEvent &);
39 void HandlePress(const SDL_MouseButtonEvent &);
40 void HandleRelease(const SDL_MouseButtonEvent &);
41 void Handle(const SDL_MouseWheelEvent &);
42 void Handle(const SDL_WindowEvent &) noexcept;
49 void RemoveBlock() noexcept;
51 void PrintBlockInfo();
52 void PrintChunkInfo();
53 void PrintLightInfo();
54 void PrintSelectionInfo();
55 void Print(const Block &);
58 void SelectPrevious();
62 void Render(DirectionalLighting &) noexcept;
78 glm::mat4 outline_transform;
82 IntervalTimer place_timer;
83 IntervalTimer remove_timer;
88 glm::tvec3<int> fwd, rev;