Files
@ r5312:ffd375effb01
Branch filter:
Location: cpp/openttd-patchpack/source/sprite.h - annotation
r5312:ffd375effb01
1.1 KiB
text/x-c
(svn r7468) -Codechange: [win32] Add some comments to MB/WIDE_TO_WIDE/MB_[BUFFER] macros and
use them some more in win32 code. Also for the clipboard use the convert_from_fs
function instead of calling Win32 API directly. Make the static buffers in OTTD2FS
and FS2OTTD the same size (character-length wise)
use them some more in win32 code. Also for the clipboard use the convert_from_fs
function instead of calling Win32 API directly. Make the static buffers in OTTD2FS
and FS2OTTD the same size (character-length wise)
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 */
|