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

Method setTextureRect

src/Core/Graphics/Sprite.cpp:132–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130 }
131
132 void Sprite::setTextureRect(
133 unsigned int x, unsigned int y, unsigned int width, unsigned int height)
134 {
135 m_sprite.setTextureRect(sf::IntRect(x, y, width, height));
136 }
137
138 const Graphics::Texture& Sprite::getTexture() const
139 {

Callers 2

loadTextureMethod · 0.45
setTextureMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected