Texture implementation that makes use of SDL_Texture.
Definition BackendTextureSDL.hpp:46
~BackendTextureSDL() override
Destructor.
void setSmooth(bool smooth) override
Changes whether the smooth filter is enabled or not.
BackendTextureSDL(SDL_Renderer *renderer)
Constructor.
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.
SDL_Texture * getInternalTexture() const
Returns a pointer to the internal SDL_Texture.
void replaceInternalTexture(SDL_Texture *texture)
Replaces the internal texture by a different one.
Base class for texture implementations that depend on the backend.
Definition BackendTexture.hpp:43