mirror of https://github.com/minetest/minetest.git
remove getTextureSize
This commit is contained in:
parent
fcca601e2d
commit
6bf96a5f05
16
src/tile.cpp
16
src/tile.cpp
|
@ -732,22 +732,6 @@ std::string TextureSource::getTextureName(u32 id)
|
|||
return m_atlaspointer_cache[id].name;
|
||||
}
|
||||
|
||||
v2s32 TextureSource::getTextureSize(u32 id)
|
||||
{
|
||||
JMutexAutoLock lock(m_atlaspointer_cache_mutex);
|
||||
|
||||
id (id >= m_atlaspointer_cache.size())
|
||||
{
|
||||
errorstream<<"TextureSource::getTextureName(): id="<<id
|
||||
<<" >= m_atlaspointer_cache.size()="
|
||||
<<m_atlaspointer_cache.size()<<std::endl;
|
||||
return "";
|
||||
}
|
||||
|
||||
return v2s32(m_atlaspointer_cache[id].getSize().Height(),
|
||||
m_atlaspointer_cache[id].getSize().Width());
|
||||
}
|
||||
|
||||
|
||||
AtlasPointer TextureSource::getTexture(u32 id)
|
||||
{
|
||||
|
|
|
@ -121,7 +121,6 @@ public:
|
|||
virtual u32 getTextureId(const std::string &name){return 0;}
|
||||
virtual u32 getTextureIdDirect(const std::string &name){return 0;}
|
||||
virtual std::string getTextureName(u32 id){return "";}
|
||||
virtual v2s32 getTextureSize(u32 id);
|
||||
virtual AtlasPointer getTexture(u32 id){return AtlasPointer(0);}
|
||||
virtual AtlasPointer getTexture(const std::string &name)
|
||||
{return AtlasPointer(0);}
|
||||
|
|
Loading…
Reference in New Issue