aboutsummaryrefslogtreecommitdiff
path: root/src/wieldmesh.h
diff options
context:
space:
mode:
authorDániel Juhász <juhdanad@gmail.com>2017-08-25 11:20:53 +0000
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-08-25 13:20:53 +0200
commitf6a33a1a7a298cb7d3fb18818bae97bd1b89d633 (patch)
tree7bc7689e33895e5a6084129484f679caaed1cfc0 /src/wieldmesh.h
parent6761e213836e902359c5d0acff277623dc3e1588 (diff)
downloaddragonfireclient-f6a33a1a7a298cb7d3fb18818bae97bd1b89d633.tar.xz
Overlays for wield and inventory images (#6107)
* Overlays for wield and inventory images
Diffstat (limited to 'src/wieldmesh.h')
-rw-r--r--src/wieldmesh.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/wieldmesh.h b/src/wieldmesh.h
index 828625075..23e3abf29 100644
--- a/src/wieldmesh.h
+++ b/src/wieldmesh.h
@@ -78,8 +78,8 @@ public:
virtual ~WieldMeshSceneNode();
void setCube(const ContentFeatures &f, v3f wield_scale);
- void setExtruded(const std::string &imagename, v3f wield_scale,
- ITextureSource *tsrc, u8 num_frames);
+ void setExtruded(const std::string &imagename, const std::string &overlay_image,
+ v3f wield_scale, ITextureSource *tsrc, u8 num_frames);
void setItem(const ItemStack &item, Client *client);
// Sets the vertex color of the wield mesh.
@@ -125,7 +125,8 @@ private:
void getItemMesh(Client *client, const ItemStack &item, ItemMesh *result);
-scene::SMesh *getExtrudedMesh(ITextureSource *tsrc, const std::string &imagename);
+scene::SMesh *getExtrudedMesh(ITextureSource *tsrc, const std::string &imagename,
+ const std::string &overlay_name);
/*!
* Applies overlays, textures and optionally materials to the given mesh and