SpriteLoaderPNG Class Reference

Sprite loader for graphics coming from a PNG image. More...

#include <png.hpp>

Inheritance diagram for SpriteLoaderPNG:
SpriteLoader

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.

Detailed Description

Sprite loader for graphics coming from a PNG image.

Definition at line 18 of file png.hpp.


Member Function Documentation

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.

Parameters:
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.
Returns:
true iff loading went okay.

Implements SpriteLoader.

Definition at line 179 of file png.cpp.

Referenced by ReadSprite().


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

Generated on Sun May 15 19:21:30 2011 for OpenTTD by  doxygen 1.6.1