Sprite loader for graphics coming from a PNG image. More...
#include <png.hpp>
Public Member Functions | |
bool | LoadSprite (SpriteLoader::Sprite *sprite, uint8 file_slot, size_t file_pos, SpriteType sprite_type) |
Load a sprite from the disk and return a sprite struct which is the same for all loaders. |
Sprite loader for graphics coming from a PNG image.
Definition at line 18 of file png.hpp.
bool SpriteLoaderPNG::LoadSprite | ( | SpriteLoader::Sprite * | sprite, | |
uint8 | file_slot, | |||
size_t | file_pos, | |||
SpriteType | sprite_type | |||
) | [virtual] |
Load a sprite from the disk and return a sprite struct which is the same for all loaders.
sprite | The sprite to fill with data. | |
file_slot | 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. |
Implements SpriteLoader.
Definition at line 179 of file png.cpp.
References FioGetFilename().
Referenced by ReadSprite().