Files
@ r5388:b83fe4735739
Branch filter:
Location: cpp/openttd-patchpack/source/sprite.h - annotation
r5388:b83fe4735739
1.1 KiB
text/x-c
(svn r7577) -Fix (r7565): Missed out some OSX files (Bjarni)
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 r4230:08db52072905 r4230:08db52072905 r4230:08db52072905 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 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 size_x;
byte size_y;
byte size_z;
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++)
#endif /* SPRITE_H */
|