Base class for texture implementations that depend on the backend.
Definition: BackendTexture.hpp:41
virtual void setSmooth(bool smooth)
Changes whether the smooth filter is enabled or not.
bool isTransparentPixel(Vector2u pixel) const
Checks if a certain pixel is transparent.
virtual bool loadTextureOnly(Vector2u size, const std::uint8_t *pixels, bool smooth)
Loads the texture from an array of 32-bits RGBA pixels, but don't take ownership of the pixels.
bool load(Vector2u size, std::unique_ptr< std::uint8_t[]> pixels, bool smooth)
Loads the texture from an array of 32-bits RGBA pixels.
Vector2u getSize() const
Returns the size of the entire image.
bool isSmooth() const
Returns whether the smooth filter is enabled or not.
virtual ~BackendTexture()=default
Virtual destructor.