42 static inline void MaxZoomInOut(int how, Window *w) |
42 static inline void MaxZoomInOut(int how, Window *w) |
43 { |
43 { |
44 while (DoZoomInOutWindow(how, w)) {}; |
44 while (DoZoomInOutWindow(how, w)) {}; |
45 } |
45 } |
46 |
46 |
|
47 /** |
|
48 * Some values for constructing bounding boxes (BB). The Z positions under bridges are: |
|
49 * z=0..5 Everything that can be built under low bridges. |
|
50 * z=6 reserved, currently unused. |
|
51 * z=7 Z separator between bridge/tunnel and the things under/above it. |
|
52 */ |
|
53 enum { |
|
54 BB_HEIGHT_UNDER_BRIDGE = 6, ///< Everything that can be built under low bridges, must not exceed this Z height. |
|
55 BB_Z_SEPARATOR = 7, ///< Separates the bridge/tunnel from the things under/above it. |
|
56 }; |
|
57 |
47 void OffsetGroundSprite(int x, int y); |
58 void OffsetGroundSprite(int x, int y); |
48 |
59 |
49 void DrawGroundSprite(SpriteID image, SpriteID pal); |
60 void DrawGroundSprite(SpriteID image, SpriteID pal); |
50 void DrawGroundSpriteAt(SpriteID image, SpriteID pal, int32 x, int32 y, byte z); |
61 void DrawGroundSpriteAt(SpriteID image, SpriteID pal, int32 x, int32 y, byte z); |
51 void AddSortableSpriteToDraw(SpriteID image, SpriteID pal, int x, int y, int w, int h, byte dz, byte z, bool transparent = false); |
62 void AddSortableSpriteToDraw(SpriteID image, SpriteID pal, int x, int y, int w, int h, int dz, int z, bool transparent = false, int bb_offset_x = 0, int bb_offset_y = 0, int bb_offset_z = 0); |
52 void *AddStringToDraw(int x, int y, StringID string, uint64 params_1, uint64 params_2); |
63 void *AddStringToDraw(int x, int y, StringID string, uint64 params_1, uint64 params_2); |
53 void AddChildSpriteScreen(SpriteID image, SpriteID pal, int x, int y); |
64 void AddChildSpriteScreen(SpriteID image, SpriteID pal, int x, int y); |
54 |
65 |
55 |
66 |
56 void StartSpriteCombine(); |
67 void StartSpriteCombine(); |