X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fhud.hpp;fp=src%2Fhud.hpp;h=47fcdb0392fa404c3b47a8e5896d7f56b6c68be0;hb=41e0223ec090142bf03066f4f5fc1f5005095072;hp=0000000000000000000000000000000000000000;hpb=66d7cf56cfbb565dd4700d94e5f338a39a40edeb;p=blank.git diff --git a/src/hud.hpp b/src/hud.hpp new file mode 100644 index 0000000..47fcdb0 --- /dev/null +++ b/src/hud.hpp @@ -0,0 +1,44 @@ +#ifndef BLANK_HUD_H_ +#define BLANK_HUD_H_ + +#include "model.hpp" +#include "shader.hpp" +#include "world.hpp" + +#include + + +namespace blank { + +class HUD { + +public: + HUD(); + + HUD(const HUD &) = delete; + HUD &operator =(const HUD &) = delete; + + void Viewport(float width, float height); + void Viewport(float x, float y, float width, float height); + + void Display(const BlockType &); + + void Render(DirectionalLighting &); + +private: + Model block; + glm::mat4 block_transform; + bool block_visible; + + OutlineModel crosshair; + glm::mat4 crosshair_transform; + + float near, far; + glm::mat4 projection; + glm::mat4 view; + +}; + +} + +#endif