mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Added sprite extruder
This commit is contained in:
parent
4ed837bcfa
commit
36bcbca9ac
8 changed files with 425 additions and 103 deletions
|
@ -56,8 +56,6 @@ public:
|
|||
// Return the name of the image for this item
|
||||
virtual std::string getBasename() { return ""; }
|
||||
// Shall return an image of the item (or NULL)
|
||||
virtual video::ITexture * getImageRaw() { return NULL; }
|
||||
// Shall return an image to show in the GUI (or NULL)
|
||||
virtual video::ITexture * getImage() { return NULL; }
|
||||
#endif
|
||||
// Shall return a text to show in the GUI
|
||||
|
@ -156,7 +154,6 @@ public:
|
|||
video::ITexture * getImage()
|
||||
{
|
||||
return content_features(m_content).inventory_texture;
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
std::string getText()
|
||||
|
@ -388,14 +385,6 @@ public:
|
|||
return "cloud.png";
|
||||
}
|
||||
|
||||
video::ITexture * getImageRaw()
|
||||
{
|
||||
if(g_texturesource == NULL)
|
||||
return NULL;
|
||||
|
||||
return g_texturesource->getTextureRaw(getBasename());
|
||||
}
|
||||
|
||||
video::ITexture * getImage()
|
||||
{
|
||||
if(g_texturesource == NULL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue