MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / getLocalBounds

Method getLocalBounds

extlibs/sfe/src/ComplexSprite.cpp:90–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88 }
89
90 sf::FloatRect ComplexSprite::getLocalBounds() const
91 {
92 float width = static_cast<float>(abs(m_textureRect.width));
93 float height = static_cast<float>(abs(m_textureRect.height));
94
95 return sf::FloatRect(0.f, 0.f, width, height);
96 }
97
98 sf::FloatRect ComplexSprite::getGlobalBounds() const
99 {

Callers 1

copyFromSpriteMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected