mirror of https://github.com/OpenTTD/OpenTTD
(svn r16671) -Doc: Documenting Sprite structure.
parent
56122e377b
commit
9489490e48
|
@ -7,12 +7,13 @@
|
||||||
|
|
||||||
#include "gfx_type.h"
|
#include "gfx_type.h"
|
||||||
|
|
||||||
|
/** Data structure describing a sprite. */
|
||||||
struct Sprite {
|
struct Sprite {
|
||||||
byte height;
|
byte height; ///< Height of the sprite.
|
||||||
uint16 width;
|
uint16 width; ///< Width of the sprite.
|
||||||
int16 x_offs;
|
int16 x_offs; ///< Number of pixels to shift the sprite to the right.
|
||||||
int16 y_offs;
|
int16 y_offs; ///< Number of pixels to shift the sprite downwards.
|
||||||
byte data[];
|
byte data[]; ///< Sprite data.
|
||||||
};
|
};
|
||||||
|
|
||||||
extern uint _sprite_cache_size;
|
extern uint _sprite_cache_size;
|
||||||
|
|
Loading…
Reference in New Issue