bool createRenderTarget(SDL_Renderer *renderer, int width, int height)
Create a render-target texture of the given dimensions.
bool loadFromMemory(SDL_Renderer *renderer, const void *data, size_t size)
Load a texture from an in-memory image file.
Owns an SDL_Texture loaded from memory or created as a render target.
Texture(Texture &&other) noexcept
Move constructor; transfers SDL_Texture ownership from the other.
Texture & operator=(Texture &&other) noexcept
Move-assignment; releases current texture then steals from the other.
int getWidth() const
Return the texture width in pixels.
int getHeight() const
Return the texture height in pixels.
SDL_Texture * getSDLTexture() const
Return the underlying SDL_Texture handle.