summaryrefslogtreecommitdiff
path: root/src/hud.h
diff options
context:
space:
mode:
authorRealBadAngel <maciej.kasatkin@o2.pl>2016-01-24 14:19:17 +0100
committerest31 <MTest31@outlook.com>2016-02-07 19:51:55 +0100
commit6cd2b3b445bf558fda1e5a7908adef8e3a45449a (patch)
treee8c48b85e55f4e86246ee21e093cee7f80146c04 /src/hud.h
parentbf884e37a06e0a8dd6c31789a69921f07ec5a9a9 (diff)
downloadminetest-6cd2b3b445bf558fda1e5a7908adef8e3a45449a.tar.gz
minetest-6cd2b3b445bf558fda1e5a7908adef8e3a45449a.tar.bz2
minetest-6cd2b3b445bf558fda1e5a7908adef8e3a45449a.zip
Use meshes to display inventory items
Diffstat (limited to 'src/hud.h')
-rw-r--r--src/hud.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/hud.h b/src/hud.h
index 65453aec1..88e7181d6 100644
--- a/src/hud.h
+++ b/src/hud.h
@@ -137,7 +137,8 @@ private:
void drawItems(v2s32 upperleftpos, s32 itemcount, s32 offset,
InventoryList *mainlist, u16 selectitem, u16 direction);
- void drawItem(const ItemStack &item, const core::rect<s32>& rect, bool selected);
+ void drawItem(const ItemStack &item, const core::rect<s32>& rect,
+ bool selected);
v2u32 m_screensize;
v2s32 m_displaycenter;
@@ -151,8 +152,10 @@ void drawItemStack(video::IVideoDriver *driver,
const ItemStack &item,
const core::rect<s32> &rect,
const core::rect<s32> *clip,
- IGameDef *gamedef);
-
+ IGameDef *gamedef,
+ bool selected,
+ bool hovered,
+ bool dragged);
#endif