Sprite loader for graphics coming from a (New)GRF.
More...
#include <grf.hpp>
Sprite loader for graphics coming from a (New)GRF.
Definition at line 16 of file grf.hpp.
◆ SpriteLoaderGrf()
SpriteLoaderGrf::SpriteLoaderGrf |
( |
uint8_t |
container_ver | ) |
|
|
inline |
◆ LoadSprite()
Load a sprite from the disk and return a sprite struct which is the same for all loaders.
- Parameters
-
[out] | sprite | The sprites to fill with data. |
| file | The file "descriptor" of the file we read from. |
| file_pos | The position within the file the image begins. |
| sprite_type | The type of sprite we're trying to load. |
| load_32bpp | True if 32bpp sprites should be loaded, false for a 8bpp sprite. |
| control_flags | Control flags, see SpriteCacheCtrlFlags. |
[out] | avail_8bpp | Available 8bpp sprites. |
[out] | avail_32bpp | Available 32bpp sprites. |
- Returns
- Available sprites matching load_32bpp.
Implements SpriteLoader.
Definition at line 362 of file grf.cpp.
Referenced by ReadSprite().
◆ container_ver
uint8_t SpriteLoaderGrf::container_ver |
|
private |
The documentation for this class was generated from the following files: