diff options
author | RealBadAngel <maciej.kasatkin@o2.pl> | 2016-02-21 06:50:41 +0100 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2016-11-12 06:41:04 +0000 |
commit | 68f5b877c72cf91106ac343673f8a31b9712a470 (patch) | |
tree | d9706d8b21a613c40e7ecf6eb254f41d5ca980ba /src/hud.h | |
parent | 8a1a9fdc24d29419422f0fb41095fd0388c4be9e (diff) | |
download | minetest-68f5b877c72cf91106ac343673f8a31b9712a470.tar.gz minetest-68f5b877c72cf91106ac343673f8a31b9712a470.tar.bz2 minetest-68f5b877c72cf91106ac343673f8a31b9712a470.zip |
Halo: Highlight selected face
This is a slightly modified and cleaned up version of #3774 by RealBadAngel.
By sofar: Remove color change (just make it lighter) and some minor cleanups.
Diffstat (limited to 'src/hud.h')
-rw-r--r-- | src/hud.h | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -139,8 +139,11 @@ public: v3f getSelectionPos() const { return m_selection_pos; } - void setSelectionMeshColor(const video::SColor &c) - { m_selection_mesh_color = c; } + void setSelectionMeshColor(const video::SColor &color) + { m_selection_mesh_color = color; } + + void setSelectedFaceNormal(const v3f &face_normal) + { m_selected_face_normal = face_normal; } void drawLuaElements(const v3s16 &camera_offset); @@ -169,6 +172,8 @@ private: scene::IMesh* m_selection_mesh; video::SColor m_selection_mesh_color; + v3f m_selected_face_normal; + video::SMaterial m_selection_material; bool m_use_selection_mesh; }; |