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

Method setRepeated

src/Core/Graphics/Texture.cpp:174–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 1

ReadOnlyTextureClass · 0.85

Tested by

no test coverage detected