Function TRAP::Graphics::SpriteManager::Remove(const Ref<SubTexture2D>&)#

Function Documentation#

Ref<SubTexture2D> TRAP::Graphics::SpriteManager::Remove(const Ref<SubTexture2D> &sprite)#

Remove a sprite from the SpriteManager.

Parameters:

sprite – Sprite to remove.

Returns:

Removed sprite on success, nullptr otherwise.