~BackendTextureSDLGPU() override
Destructor.
BackendTextureSDLGPU(SDL_GPUDevice *device, std::uint32_t usageFlags=SDL_GPU_TEXTUREUSAGE_SAMPLER)
Constructor.
void replaceInternalTexture(SDL_GPUTexture *texture, Vector2u imageSize)
Replaces the internal texture by a different one.
SDL_GPUTexture * getInternalTexture() const
Returns a pointer to the internal SDL_GPUTexture.
Definition BackendTextureSDLGPU.hpp:74
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.