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