mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
work-in-progress texture atlas optimization
This commit is contained in:
parent
949383a2f7
commit
1704badc30
21 changed files with 1496 additions and 271 deletions
|
@ -96,13 +96,17 @@ InventoryItem* InventoryItem::deSerialize(std::istream &is)
|
|||
#ifndef SERVER
|
||||
video::ITexture * MapBlockObjectItem::getImage()
|
||||
{
|
||||
//TODO
|
||||
|
||||
if(m_inventorystring.substr(0,3) == "Rat")
|
||||
//return g_device->getVideoDriver()->getTexture(porting::getDataPath("rat.png").c_str());
|
||||
return g_irrlicht->getTexture("rat.png");
|
||||
//return g_irrlicht->getTexture("rat.png");
|
||||
return NULL;
|
||||
|
||||
if(m_inventorystring.substr(0,4) == "Sign")
|
||||
//return g_device->getVideoDriver()->getTexture(porting::getDataPath("sign.png").c_str());
|
||||
return g_irrlicht->getTexture("sign.png");
|
||||
//return g_irrlicht->getTexture("sign.png");
|
||||
return NULL;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue