summaryrefslogtreecommitdiff
path: root/src/inventory.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-11-16 14:44:01 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-11-29 19:13:47 +0200
commitf68fa667c8723cc39f113502c53cc5c35eb32ab6 (patch)
treed1c8a3dd207a45dc2c1ff0f8703a62687d9875aa /src/inventory.h
parent7a29b14a20b16b97fd0d97d9f305fe0d53c160bf (diff)
downloadminetest-f68fa667c8723cc39f113502c53cc5c35eb32ab6.tar.gz
minetest-f68fa667c8723cc39f113502c53cc5c35eb32ab6.tar.bz2
minetest-f68fa667c8723cc39f113502c53cc5c35eb32ab6.zip
Clean InventoryItem interface a bit
Diffstat (limited to 'src/inventory.h')
-rw-r--r--src/inventory.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/inventory.h b/src/inventory.h
index 32e1cd93e..64fab921b 100644
--- a/src/inventory.h
+++ b/src/inventory.h
@@ -51,11 +51,11 @@ public:
virtual std::string getImageBasename() const { return ""; }
#ifndef SERVER
// Shall return an image of the item (or NULL)
- virtual video::ITexture * getImage(ITextureSource *tsrc) const
+ virtual video::ITexture * getImage() const
{ return NULL; }
// Shall return an image of the item without embellishments (or NULL)
- virtual video::ITexture * getImageRaw(ITextureSource *tsrc) const
- { return getImage(tsrc); }
+ virtual video::ITexture * getImageRaw() const
+ { return getImage(); }
#endif
// Shall return a text to show in the GUI
virtual std::string getText() { return ""; }
@@ -161,7 +161,7 @@ public:
return new MaterialItem(m_gamedef, m_nodename, m_count);
}
#ifndef SERVER
- video::ITexture * getImage(ITextureSource *tsrc) const;
+ video::ITexture * getImage() const;
#endif
std::string getText()
{
@@ -235,7 +235,7 @@ public:
return new CraftItem(m_gamedef, m_subname, m_count);
}
#ifndef SERVER
- video::ITexture * getImage(ITextureSource *tsrc) const;
+ video::ITexture * getImage() const;
#endif
std::string getText()
{
@@ -316,8 +316,8 @@ public:
std::string getImageBasename() const;
#ifndef SERVER
- video::ITexture * getImage(ITextureSource *tsrc) const;
- video::ITexture * getImageRaw(ITextureSource *tsrc) const;
+ video::ITexture * getImage() const;
+ video::ITexture * getImageRaw() const;
#endif
std::string getText()