| 122 | } |
| 123 | |
| 124 | void Sprite::setTexture(const Texture& texture) |
| 125 | { |
| 126 | // m_texture = std::shared_ptr<Texture>(std::shared_ptr<Texture>(), texture); |
| 127 | m_sprite.setTexture(texture); |
| 128 | m_sprite.setTextureRect( |
| 129 | sf::IntRect(0, 0, texture.getSize().x, texture.getSize().y)); |
| 130 | } |
| 131 | |
| 132 | void Sprite::setTextureRect( |
| 133 | unsigned int x, unsigned int y, unsigned int width, unsigned int height) |
no test coverage detected