OpenTTD Source
20241108-master-g80f628063a
|
Interface for something that can encode a sprite. More...
#include <spriteloader.hpp>
Public Member Functions | |
virtual bool | Is32BppSupported ()=0 |
Can the sprite encoder make use of RGBA sprites? | |
virtual Sprite * | Encode (const SpriteLoader::SpriteCollection &sprite, SpriteAllocator &allocator)=0 |
Convert a sprite from the loader to our own format. | |
virtual uint | GetSpriteAlignment () |
Get the value which the height and width on a sprite have to be aligned by. More... | |
Interface for something that can encode a sprite.
Definition at line 114 of file spriteloader.hpp.
|
inlinevirtual |
Get the value which the height and width on a sprite have to be aligned by.
Reimplemented in OpenGLBackend.
Definition at line 133 of file spriteloader.hpp.