OpenTTD Source: SpriteEncoder Class Reference

OpenTTD Source 1.11.0-RC1

Public Member Functions
SpriteEncoder Class Referenceabstract

Interface for something that can encode a sprite. More...

`#include <spriteloader.hpp>`

Inheritance diagram for SpriteEncoder:

## Public Member Functions
virtual bool | Is32BppSupported ()=0
| Can the sprite encoder make use of RGBA sprites?
virtual Sprite * | Encode (const SpriteLoader::Sprite *sprite, AllocatorProc *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...

## Detailed Description

Interface for something that can encode a sprite.

Definition at line 82 of file spriteloader.hpp.

## Member Function Documentation

## ◆ GetSpriteAlignment()

virtual uint SpriteEncoder::GetSpriteAlignment | ( |  | ) |
| inlinevirtual

Get the value which the height and width on a sprite have to be aligned by.

Returns
  The needed alignment or 0 if any alignment is accepted.

Reimplemented in OpenGLBackend.

Definition at line 101 of file spriteloader.hpp.

The documentation for this class was generated from the following file:

- src/spriteloader/spriteloader.hpp