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

Method setAntiAliasing

src/Core/Graphics/Texture.cpp:140–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 1

ReadOnlyTextureClass · 0.85

Tested by

no test coverage detected