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"
13 #include <glm/glm.hpp>
20 class DirectionalLighting;
28 float move_velocity = 0.005f;
29 float pitch_sensitivity = -0.0025f;
30 float yaw_sensitivity = -0.001f;
32 bool keyboard_disabled = false;
33 bool mouse_disabled = false;
34 bool visual_disabled = false;
37 Interface(const Config &, const Assets &, World &);
39 void HandlePress(const SDL_KeyboardEvent &);
40 void HandleRelease(const SDL_KeyboardEvent &);
41 void Handle(const SDL_MouseMotionEvent &);
42 void HandlePress(const SDL_MouseButtonEvent &);
43 void HandleRelease(const SDL_MouseButtonEvent &);
44 void Handle(const SDL_MouseWheelEvent &);
45 void Handle(const SDL_WindowEvent &) noexcept;
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();
67 void Render(DirectionalLighting &, BlendedSprite &) noexcept;
84 glm::mat4 outline_transform;
88 IntervalTimer place_timer;
89 IntervalTimer remove_timer;
94 glm::tvec3<int> fwd, rev;