1 #ifndef BLANK_UI_HUD_H_
2 #define BLANK_UI_HUD_H_
4 #include "../graphics/Texture.hpp"
5 #include "../model/Model.hpp"
6 #include "../model/OutlineModel.hpp"
7 #include "../model/SpriteModel.hpp"
16 class BlockTypeRegistry;
17 class DirectionalLighting;
23 HUD(const BlockTypeRegistry &, const Font &);
25 HUD(const HUD &) = delete;
26 HUD &operator =(const HUD &) = delete;
28 void Viewport(float width, float height) noexcept;
29 void Viewport(float x, float y, float width, float height) noexcept;
31 void Display(const Block &);
33 void Render(DirectionalLighting &, BlendedSprite &) noexcept;
36 const BlockTypeRegistry &types;
40 Model::Buffer block_buf;
41 glm::mat4 block_transform;
44 SpriteModel label_sprite;
45 glm::mat4 label_transform;
46 SDL_Color label_color;
50 OutlineModel crosshair;
51 glm::mat4 crosshair_transform;