MCPcopy Create free account
hub / github.com/axmolengine/axmol / getDescription

Method getDescription

core/2d/Sprite.cpp:1697–1709  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1695}
1696
1697std::string Sprite::getDescription() const
1698{
1699 char buf[100];
1700 std::string_view desc;
1701 if (_renderMode == RenderMode::QUAD_BATCHNODE)
1702 desc = fmt::format_to_z(buf, "<Sprite | Tag = {}, TextureID = {}>", _tag,
1703 fmt::ptr(_batchNode->getTextureAtlas()->getTexture()->getBackendTexture()));
1704 else
1705 desc = fmt::format_to_z(buf, "<Sprite | Tag = {}, TextureID = {}>", _tag,
1706 fmt::ptr(_texture->getBackendTexture()));
1707
1708 return std::string{desc};
1709}
1710
1711const PolygonInfo& Sprite::getPolygonInfo() const
1712{

Callers

nothing calls this directly

Calls 5

format_to_zFunction · 0.85
getBackendTextureMethod · 0.80
getTextureAtlasMethod · 0.80
ptrFunction · 0.50
getTextureMethod · 0.45

Tested by

no test coverage detected