#include <item_visuals_manager.h>
Collaboration diagram for ItemVisualsManager:Classes | |
| struct | ItemVisuals |
Public Member Functions | |
| ItemVisualsManager () | |
| ~ItemVisualsManager () | |
| void | clear () |
| Clears the cached visuals. | |
| video::ITexture * | getInventoryTexture (const ItemStack &item, Client *client) const |
| video::ITexture * | getInventoryOverlayTexture (const ItemStack &item, Client *client) const |
| AnimationInfo * | getInventoryAnimation (const ItemStack &item, Client *client) const |
| AnimationInfo * | getInventoryOverlayAnimation (const ItemStack &item, Client *client) const |
| ItemMesh * | getItemMesh (const ItemStack &item, Client *client) const |
| Palette * | getPalette (const ItemStack &item, Client *client) const |
| video::SColor | getItemstackColor (const ItemStack &stack, Client *client) const |
Private Member Functions | |
| ItemVisuals * | createItemVisuals (const ItemStack &item, Client *client) const |
Private Attributes | |
| std::thread::id | m_main_thread |
| std::unordered_map< std::string, std::unique_ptr< ItemVisuals > > | m_cached_item_visuals |
| ItemVisualsManager::ItemVisualsManager | ( | ) |
References m_main_thread.
| ItemVisualsManager::~ItemVisualsManager | ( | ) |
| void ItemVisualsManager::clear | ( | ) |
Clears the cached visuals.
References m_cached_item_visuals.
Referenced by Client::~Client().
Here is the caller graph for this function:
|
private |
References ItemImageDef::animation, createAnimationFrames(), createItemMesh(), ItemStack::getDefinition(), ItemStack::getInventoryImage(), ItemStack::getInventoryOverlay(), ITextureSource::getPalette(), infostream, ItemDefinition::inventory_overlay, m_cached_item_visuals, m_main_thread, ItemDefinition::name, ItemImageDef::name, ItemDefinition::palette_image, and sanity_check.
Referenced by getInventoryAnimation(), getInventoryOverlayAnimation(), getInventoryOverlayTexture(), getInventoryTexture(), getItemMesh(), and getPalette().
Here is the call graph for this function:
Here is the caller graph for this function:| AnimationInfo * ItemVisualsManager::getInventoryAnimation | ( | const ItemStack & | item, |
| Client * | client ) const |
References createItemVisuals(), AnimationInfo::getFrameCount(), and ItemVisualsManager::ItemVisuals::inventory_normal.
Referenced by WieldMeshSceneNode::setItem().
Here is the call graph for this function:
Here is the caller graph for this function:| AnimationInfo * ItemVisualsManager::getInventoryOverlayAnimation | ( | const ItemStack & | item, |
| Client * | client ) const |
References createItemVisuals(), AnimationInfo::getFrameCount(), and ItemVisualsManager::ItemVisuals::inventory_overlay.
Referenced by WieldMeshSceneNode::setItem().
Here is the call graph for this function:
Here is the caller graph for this function:| video::ITexture * ItemVisualsManager::getInventoryOverlayTexture | ( | const ItemStack & | item, |
| Client * | client ) const |
References createItemVisuals(), AnimationInfo::getTexture(), and ItemVisualsManager::ItemVisuals::inventory_overlay.
Referenced by drawItemStack(), and WieldMeshSceneNode::setItem().
Here is the call graph for this function:
Here is the caller graph for this function:| video::ITexture * ItemVisualsManager::getInventoryTexture | ( | const ItemStack & | item, |
| Client * | client ) const |
References createItemVisuals(), AnimationInfo::getTexture(), and ItemVisualsManager::ItemVisuals::inventory_normal.
Referenced by drawItemStack(), and WieldMeshSceneNode::setItem().
Here is the call graph for this function:
Here is the caller graph for this function:References createItemVisuals(), and ItemVisualsManager::ItemVisuals::item_mesh.
Referenced by drawItemStack().
Here is the call graph for this function:
Here is the caller graph for this function:| video::SColor ItemVisualsManager::getItemstackColor | ( | const ItemStack & | stack, |
| Client * | client ) const |
References getPalette(), SimpleMetadata::getString(), ItemStack::metadata, mystoi(), ItemStack::name, and parseColorString().
Referenced by drawItemStack(), and WieldMeshSceneNode::setItem().
Here is the call graph for this function:
Here is the caller graph for this function:References createItemVisuals(), and ItemVisualsManager::ItemVisuals::palette.
Referenced by getItemstackColor().
Here is the call graph for this function:
Here is the caller graph for this function:
|
mutableprivate |
Referenced by clear(), and createItemVisuals().
|
private |
Referenced by ItemVisualsManager(), and createItemVisuals().