MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / GetTexture

Method GetTexture

LuaSTGPlus/ResourceMgr.h:639–646  ·  view source on GitHub ↗

@brief 获取纹理

Source from the content-addressed store, hash-verified

637
638 /// @brief 获取纹理
639 fcyRefPointer<ResTexture> GetTexture(const char* name)LNOEXCEPT
640 {
641 auto i = m_TexturePool.find(name);
642 if (i == m_TexturePool.end())
643 return nullptr;
644 else
645 return i->second;
646 }
647
648 /// @brief 获取精灵
649 fcyRefPointer<ResSprite> GetSprite(const char* name)LNOEXCEPT

Callers

nothing calls this directly

Calls 1

findMethod · 0.80

Tested by

no test coverage detected