|
OpenTTD Source 20260218-master-g2123fca5ea
|
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 (SpriteType sprite_type, 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. | |
Interface for something that can encode a sprite.
Definition at line 130 of file spriteloader.hpp.
|
pure virtual |
Convert a sprite from the loader to our own format.
| sprite_type | The type of sprite to load. |
| sprite | The sprites to load. |
| allocator | The allocator for the sprite's memory. |
Implemented in Blitter_32bppOptimized, Blitter_32bppSimple, Blitter_40bppAnim, Blitter_8bppOptimized, Blitter_8bppSimple, Blitter_Null, and OpenGLBackend.
Referenced by CoreTextFontCache::InternalGetGlyph(), FreeTypeFontCache::InternalGetGlyph(), Win32FontCache::InternalGetGlyph(), and ReadSprite().
|
inlinevirtual |
Get the value which the height and width on a sprite have to be aligned by.
Reimplemented in OpenGLBackend.
Definition at line 154 of file spriteloader.hpp.
|
pure virtual |
Can the sprite encoder make use of RGBA sprites?
true iff RGBA sprites are supported. Implemented in Blitter, and OpenGLBackend.
Referenced by ReadSprite().