mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
framework for modifying textures
This commit is contained in:
parent
6350c5d7a6
commit
123e8fdf53
19 changed files with 425 additions and 246 deletions
|
@ -80,10 +80,12 @@ InventoryItem* InventoryItem::deSerialize(std::istream &is)
|
|||
video::ITexture * MapBlockObjectItem::getImage()
|
||||
{
|
||||
if(m_inventorystring.substr(0,3) == "Rat")
|
||||
return g_device->getVideoDriver()->getTexture("../data/rat.png");
|
||||
//return g_device->getVideoDriver()->getTexture("../data/rat.png");
|
||||
return g_irrlicht->getTexture("../data/rat.png");
|
||||
|
||||
if(m_inventorystring.substr(0,4) == "Sign")
|
||||
return g_device->getVideoDriver()->getTexture("../data/sign.png");
|
||||
//return g_device->getVideoDriver()->getTexture("../data/sign.png");
|
||||
return g_irrlicht->getTexture("../data/sign.png");
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue