| 172 | } |
| 173 | |
| 174 | void Texture::setRepeated(bool repeated) |
| 175 | { |
| 176 | if (std::holds_alternative<sf::Texture>(m_texture)) |
| 177 | { |
| 178 | return std::get<sf::Texture>(m_texture).setRepeated(repeated); |
| 179 | } |
| 180 | if (std::holds_alternative<std::shared_ptr<sf::Texture>>(m_texture)) |
| 181 | { |
| 182 | return std::get<std::shared_ptr<sf::Texture>>(m_texture)->setRepeated( |
| 183 | repeated); |
| 184 | } |
| 185 | if (std::holds_alternative<const sf::Texture*>(m_texture)) |
| 186 | { |
| 187 | throw Exceptions::ReadOnlyTexture("setRepeated", EXC_INFO); |
| 188 | } |
| 189 | } |
| 190 | |
| 191 | bool Texture::isRepeated() const |
| 192 | { |
nothing calls this directly
no test coverage detected