Texture implementation that makes use of SFML.
Definition BackendTextureSFML.hpp:44
void replaceInternalTexture(const sf::Texture &texture)
Replaces the internal texture by a different one.
sf::Texture * getInternalTexture()
Returns a reference to the internal SFML texture.
void setSmooth(bool smooth) override
Changes whether the smooth filter is enabled or not.
const sf::Texture * getInternalTexture() const
Returns a const reference to the internal SFML texture.
bool loadTextureOnly(Vector2u size, const std::uint8_t *pixels, bool smooth) override
Loads the texture from an array of 32-bits RGBA pixels, but don't take ownership of the pixels.
Base class for texture implementations that depend on the backend.
Definition BackendTexture.hpp:43