1 #ifndef BLANK_UI_INTERFACE_HPP_
2 #define BLANK_UI_INTERFACE_HPP_
5 #include "../app/FPSController.hpp"
6 #include "../app/IntervalTimer.hpp"
7 #include "../graphics/Font.hpp"
8 #include "../model/geometry.hpp"
9 #include "../model/OutlineModel.hpp"
10 #include "../world/Block.hpp"
12 #include <glm/glm.hpp>
27 float move_velocity = 0.005f;
28 float pitch_sensitivity = -0.0025f;
29 float yaw_sensitivity = -0.001f;
31 bool keyboard_disabled = false;
32 bool mouse_disabled = false;
33 bool visual_disabled = false;
36 Interface(const Config &, const Assets &, const FrameCounter &, World &);
38 void HandlePress(const SDL_KeyboardEvent &);
39 void HandleRelease(const SDL_KeyboardEvent &);
40 void Handle(const SDL_MouseMotionEvent &);
41 void HandlePress(const SDL_MouseButtonEvent &);
42 void HandleRelease(const SDL_MouseButtonEvent &);
43 void Handle(const SDL_MouseWheelEvent &);
45 void Resize(const Viewport &);
50 void ToggleCollision();
54 void RemoveBlock() noexcept;
56 void PrintBlockInfo();
57 void PrintChunkInfo();
58 void PrintLightInfo();
59 void PrintSelectionInfo();
60 void Print(const Block &);
63 void SelectPrevious();
70 void Render(Viewport &) noexcept;
76 const FrameCounter &counter;
88 glm::mat4 outline_transform;
92 SpriteModel counter_sprite;
93 glm::mat4 counter_transform;
98 IntervalTimer place_timer;
99 IntervalTimer remove_timer;
104 glm::tvec3<int> fwd, rev;