| 138 | } |
| 139 | |
| 140 | void Texture::setAntiAliasing(bool antiAliasing) |
| 141 | { |
| 142 | if (std::holds_alternative<sf::Texture>(m_texture)) |
| 143 | { |
| 144 | return std::get<sf::Texture>(m_texture).setSmooth(antiAliasing); |
| 145 | } |
| 146 | if (std::holds_alternative<std::shared_ptr<sf::Texture>>(m_texture)) |
| 147 | { |
| 148 | return std::get<std::shared_ptr<sf::Texture>>(m_texture)->setSmooth( |
| 149 | antiAliasing); |
| 150 | } |
| 151 | if (std::holds_alternative<const sf::Texture*>(m_texture)) |
| 152 | { |
| 153 | throw Exceptions::ReadOnlyTexture("setAntiAliasing", EXC_INFO); |
| 154 | } |
| 155 | } |
| 156 | |
| 157 | bool Texture::isAntiAliased() const |
| 158 | { |
nothing calls this directly
no test coverage detected