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

Method setTexture

extlibs/sfe/src/ComplexSprite.cpp:50–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48 }
49
50 void ComplexSprite::setTexture(const sf::Texture& texture, bool resetRect)
51 {
52 if (resetRect || (!m_texture && (m_textureRect == sf::IntRect())))
53 setTextureRect(sf::IntRect(0, 0, texture.getSize().x, texture.getSize().y));
54 m_texture = &texture;
55 }
56
57 void ComplexSprite::setTextureRect(const sf::IntRect& rectangle)
58 {

Callers

nothing calls this directly

Calls 1

getSizeMethod · 0.45

Tested by

no test coverage detected