1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

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.
This commit is contained in:
RealBadAngel 2016-02-21 06:50:41 +01:00 committed by paramat
parent 8a1a9fdc24
commit 68f5b877c7
6 changed files with 39 additions and 2 deletions

View file

@ -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;
};