diff options
author | EvidenceB <49488517+EvidenceBKidscode@users.noreply.github.com> | 2020-08-29 20:13:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-29 20:13:30 +0200 |
commit | 5c4b560b6812bbdf7a9d3202c95bad5c9df97d66 (patch) | |
tree | 9e29fa859e14890e78cd215b25a0b822a0b37e8b /src/client/hud.h | |
parent | 386d5f778a299cc0d891eb476674f3eddb108376 (diff) | |
download | dragonfireclient-5c4b560b6812bbdf7a9d3202c95bad5c9df97d66.tar.xz |
Add compass HUD element (#9312)
Co-authored-by: Jean-Patrick Guerrero <jeanpatrick.guerrero@gmail.com>
Co-authored-by: Pierre-Yves Rollo <dev@pyrollo.com>
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
Diffstat (limited to 'src/client/hud.h')
-rw-r--r-- | src/client/hud.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/client/hud.h b/src/client/hud.h index ba34d479d..cf83cb16e 100644 --- a/src/client/hud.h +++ b/src/client/hud.h @@ -95,6 +95,12 @@ private: void drawItem(const ItemStack &item, const core::rect<s32> &rect, bool selected); + void drawCompassTranslate(HudElement *e, video::ITexture *texture, + const core::rect<s32> &rect, int way); + + void drawCompassRotate(HudElement *e, video::ITexture *texture, + const core::rect<s32> &rect, int way); + float m_hud_scaling; // cached minetest setting float m_scale_factor; v3s16 m_camera_offset; @@ -115,6 +121,8 @@ private: video::SMaterial m_selection_material; + scene::SMeshBuffer m_rotation_mesh_buffer; + enum { HIGHLIGHT_BOX, |