Files
@ r3765:c9eaea3d3f78
Branch filter:
Location: cpp/openttd-patchpack/source/sprite.h - annotation
r3765:c9eaea3d3f78
1.2 KiB
text/x-c
(svn r4757) - Newstations: add saveload support for custom station speclists
r2186:5ee653b1b5e1 r2186:5ee653b1b5e1 r406:4f7c55e23b9d r406:4f7c55e23b9d r406:4f7c55e23b9d r406:4f7c55e23b9d r406:4f7c55e23b9d r406:4f7c55e23b9d r406:4f7c55e23b9d r406:4f7c55e23b9d r406:4f7c55e23b9d r408:e003dfb10972 r406:4f7c55e23b9d r406:4f7c55e23b9d r406:4f7c55e23b9d r406:4f7c55e23b9d r406:4f7c55e23b9d r406:4f7c55e23b9d r406:4f7c55e23b9d r406:4f7c55e23b9d r406:4f7c55e23b9d r2548:9570bbbdacab r406:4f7c55e23b9d r406:4f7c55e23b9d r3654:83eca8525ed0 r3654:83eca8525ed0 r3654:83eca8525ed0 r3654:83eca8525ed0 r3654:83eca8525ed0 r3654:83eca8525ed0 r3654:83eca8525ed0 r3654:83eca8525ed0 r3654:83eca8525ed0 r3654:83eca8525ed0 r3654:83eca8525ed0 r3654:83eca8525ed0 r3654:83eca8525ed0 r3654:83eca8525ed0 r3654:83eca8525ed0 r408:e003dfb10972 r406:4f7c55e23b9d r406:4f7c55e23b9d r406:4f7c55e23b9d r3664:2528e32a3d64 r3664:2528e32a3d64 r408:e003dfb10972 r408:e003dfb10972 r2436:963efe8b84cc | /* $Id$ */
#ifndef SPRITE_H
#define SPRITE_H
/* The following describes bunch of sprites to be drawn together in a single 3D
* bounding box. Used especially for various multi-sprite buildings (like
* depots or stations): */
typedef struct DrawTileSeqStruct {
int8 delta_x; // 0x80 is sequence terminator
int8 delta_y;
int8 delta_z;
byte width,height;
byte unk; // 'depth', just z-size; TODO: rename
uint32 image;
} DrawTileSeqStruct;
typedef struct DrawTileSprites {
SpriteID ground_sprite;
const DrawTileSeqStruct* seq;
} DrawTileSprites;
/**
* This structure is the same for both Industries and Houses.
* Buildings here reference a general type of construction
*/
typedef struct DrawBuildingsTileStruct {
SpriteID ground;
SpriteID building;
byte subtile_x:4;
byte subtile_y:4;
byte width:4;
byte height:4;
byte dz;
byte draw_proc; /* this allows to specify a special drawing procedure.*/
} DrawBuildingsTileStruct;
// Iterate through all DrawTileSeqStructs in DrawTileSprites.
#define foreach_draw_tile_seq(idx, list) for (idx = list; ((byte) idx->delta_x) != 0x80; idx++)
// XXX Temporary include while juggling about
#include "newgrf_spritegroup.h"
#endif /* SPRITE_H */
|