author | richk |
Tue, 17 Jun 2008 13:22:13 +0000 | |
branch | NewGRF_ports |
changeset 10994 | cd9968b6f96b |
parent 10724 | 68a692eacf22 |
permissions | -rw-r--r-- |
2186 | 1 |
/* $Id$ */ |
2 |
||
10724
68a692eacf22
(svn r13274) [NewGRF_ports] -Sync: with trunk r12806:13144.
richk
parents:
10184
diff
changeset
|
3 |
/** @file track_land.h Sprites to use and how to display them for train depot/waypoint tiles. */ |
68a692eacf22
(svn r13274) [NewGRF_ports] -Sync: with trunk r12806:13144.
richk
parents:
10184
diff
changeset
|
4 |
|
6878
7d1ff2f621c7
(svn r12351) [NewGRF_ports] -Sync: with trunk r12051:12350.
richk
parents:
5920
diff
changeset
|
5 |
#define TILE_SEQ_LINE(img, dx, dy, sx, sy) { dx, dy, 0, sx, sy, 23, {img, PAL_NONE} }, |
7d1ff2f621c7
(svn r12351) [NewGRF_ports] -Sync: with trunk r12051:12350.
richk
parents:
5920
diff
changeset
|
6 |
#define TILE_SEQ_END() { (byte)0x80, 0, 0, 0, 0, 0, {0, 0} } |
1542
2ca6d1624e6d
(svn r2046) -Codechange: moved all waypoint code to waypoint.c/waypoint.h
truelight
parents:
1399
diff
changeset
|
7 |
|
0 | 8 |
|
4225
a14f76451e03
(svn r5771) Unify several code paths and data structures for drawing train depots and waypoints
tron
parents:
3528
diff
changeset
|
9 |
static const DrawTileSeqStruct _depot_gfx_NE[] = { |
5920
16287dbdc64e
(svn r8129) -Codechange: Change data tables to use split off palette map. And
peter1138
parents:
5838
diff
changeset
|
10 |
TILE_SEQ_LINE(SPR_RAIL_DEPOT_NE | (1 << PALETTE_MODIFIER_COLOR), 2, 13, 13, 1) |
0 | 11 |
TILE_SEQ_END() |
12 |
}; |
|
13 |
||
4225
a14f76451e03
(svn r5771) Unify several code paths and data structures for drawing train depots and waypoints
tron
parents:
3528
diff
changeset
|
14 |
static const DrawTileSeqStruct _depot_gfx_SE[] = { |
5920
16287dbdc64e
(svn r8129) -Codechange: Change data tables to use split off palette map. And
peter1138
parents:
5838
diff
changeset
|
15 |
TILE_SEQ_LINE(SPR_RAIL_DEPOT_SE_1 | (1 << PALETTE_MODIFIER_COLOR), 2, 2, 1, 13) |
16287dbdc64e
(svn r8129) -Codechange: Change data tables to use split off palette map. And
peter1138
parents:
5838
diff
changeset
|
16 |
TILE_SEQ_LINE(SPR_RAIL_DEPOT_SE_2 | (1 << PALETTE_MODIFIER_COLOR), 13, 2, 1, 13) |
0 | 17 |
TILE_SEQ_END() |
18 |
}; |
|
19 |
||
4225
a14f76451e03
(svn r5771) Unify several code paths and data structures for drawing train depots and waypoints
tron
parents:
3528
diff
changeset
|
20 |
static const DrawTileSeqStruct _depot_gfx_SW[] = { |
5920
16287dbdc64e
(svn r8129) -Codechange: Change data tables to use split off palette map. And
peter1138
parents:
5838
diff
changeset
|
21 |
TILE_SEQ_LINE(SPR_RAIL_DEPOT_SW_1 | (1 << PALETTE_MODIFIER_COLOR), 2, 2, 13, 1) |
16287dbdc64e
(svn r8129) -Codechange: Change data tables to use split off palette map. And
peter1138
parents:
5838
diff
changeset
|
22 |
TILE_SEQ_LINE(SPR_RAIL_DEPOT_SW_2 | (1 << PALETTE_MODIFIER_COLOR), 2, 13, 13, 1) |
0 | 23 |
TILE_SEQ_END() |
24 |
}; |
|
25 |
||
4225
a14f76451e03
(svn r5771) Unify several code paths and data structures for drawing train depots and waypoints
tron
parents:
3528
diff
changeset
|
26 |
static const DrawTileSeqStruct _depot_gfx_NW[] = { |
5920
16287dbdc64e
(svn r8129) -Codechange: Change data tables to use split off palette map. And
peter1138
parents:
5838
diff
changeset
|
27 |
TILE_SEQ_LINE(SPR_RAIL_DEPOT_NW | (1 << PALETTE_MODIFIER_COLOR), 13, 2, 1, 13) |
0 | 28 |
TILE_SEQ_END() |
29 |
}; |
|
30 |
||
4229
558d5a64b24b
(svn r5785) Fix(5771) : Silenced a warning in MSVC that prevented from compiling.
belugas
parents:
4225
diff
changeset
|
31 |
static const DrawTileSprites _depot_gfx_table[] = { |
6878
7d1ff2f621c7
(svn r12351) [NewGRF_ports] -Sync: with trunk r12051:12350.
richk
parents:
5920
diff
changeset
|
32 |
{ {SPR_FLAT_GRASS_TILE, PAL_NONE}, _depot_gfx_NE }, |
7d1ff2f621c7
(svn r12351) [NewGRF_ports] -Sync: with trunk r12051:12350.
richk
parents:
5920
diff
changeset
|
33 |
{ {SPR_RAIL_TRACK_Y, PAL_NONE}, _depot_gfx_SE }, |
7d1ff2f621c7
(svn r12351) [NewGRF_ports] -Sync: with trunk r12051:12350.
richk
parents:
5920
diff
changeset
|
34 |
{ {SPR_RAIL_TRACK_X, PAL_NONE}, _depot_gfx_SW }, |
7d1ff2f621c7
(svn r12351) [NewGRF_ports] -Sync: with trunk r12051:12350.
richk
parents:
5920
diff
changeset
|
35 |
{ {SPR_FLAT_GRASS_TILE, PAL_NONE}, _depot_gfx_NW } |
4225
a14f76451e03
(svn r5771) Unify several code paths and data structures for drawing train depots and waypoints
tron
parents:
3528
diff
changeset
|
36 |
}; |
a14f76451e03
(svn r5771) Unify several code paths and data structures for drawing train depots and waypoints
tron
parents:
3528
diff
changeset
|
37 |
|
10184
fcf5fb2548eb
(svn r12715) [NewGRF_ports] -Sync: with trunk r12351:12644.
richk
parents:
6878
diff
changeset
|
38 |
static const DrawTileSprites _depot_invisible_gfx_table[] = { |
fcf5fb2548eb
(svn r12715) [NewGRF_ports] -Sync: with trunk r12351:12644.
richk
parents:
6878
diff
changeset
|
39 |
{ {SPR_RAIL_TRACK_X, PAL_NONE}, _depot_gfx_NE }, |
fcf5fb2548eb
(svn r12715) [NewGRF_ports] -Sync: with trunk r12351:12644.
richk
parents:
6878
diff
changeset
|
40 |
{ {SPR_RAIL_TRACK_Y, PAL_NONE}, _depot_gfx_SE }, |
fcf5fb2548eb
(svn r12715) [NewGRF_ports] -Sync: with trunk r12351:12644.
richk
parents:
6878
diff
changeset
|
41 |
{ {SPR_RAIL_TRACK_X, PAL_NONE}, _depot_gfx_SW }, |
fcf5fb2548eb
(svn r12715) [NewGRF_ports] -Sync: with trunk r12351:12644.
richk
parents:
6878
diff
changeset
|
42 |
{ {SPR_RAIL_TRACK_Y, PAL_NONE}, _depot_gfx_NW } |
fcf5fb2548eb
(svn r12715) [NewGRF_ports] -Sync: with trunk r12351:12644.
richk
parents:
6878
diff
changeset
|
43 |
}; |
4225
a14f76451e03
(svn r5771) Unify several code paths and data structures for drawing train depots and waypoints
tron
parents:
3528
diff
changeset
|
44 |
|
a14f76451e03
(svn r5771) Unify several code paths and data structures for drawing train depots and waypoints
tron
parents:
3528
diff
changeset
|
45 |
static const DrawTileSeqStruct _waypoint_gfx_X[] = { |
5920
16287dbdc64e
(svn r8129) -Codechange: Change data tables to use split off palette map. And
peter1138
parents:
5838
diff
changeset
|
46 |
TILE_SEQ_LINE((1 << PALETTE_MODIFIER_COLOR) | SPR_WAYPOINT_X_1, 0, 0, 16, 5) |
16287dbdc64e
(svn r8129) -Codechange: Change data tables to use split off palette map. And
peter1138
parents:
5838
diff
changeset
|
47 |
TILE_SEQ_LINE((1 << PALETTE_MODIFIER_COLOR) | SPR_WAYPOINT_X_2, 0, 11, 16, 5) |
0 | 48 |
TILE_SEQ_END() |
49 |
}; |
|
50 |
||
4225
a14f76451e03
(svn r5771) Unify several code paths and data structures for drawing train depots and waypoints
tron
parents:
3528
diff
changeset
|
51 |
static const DrawTileSeqStruct _waypoint_gfx_Y[] = { |
5920
16287dbdc64e
(svn r8129) -Codechange: Change data tables to use split off palette map. And
peter1138
parents:
5838
diff
changeset
|
52 |
TILE_SEQ_LINE((1 << PALETTE_MODIFIER_COLOR) | SPR_WAYPOINT_Y_1, 0, 0, 5, 16) |
16287dbdc64e
(svn r8129) -Codechange: Change data tables to use split off palette map. And
peter1138
parents:
5838
diff
changeset
|
53 |
TILE_SEQ_LINE((1 << PALETTE_MODIFIER_COLOR) | SPR_WAYPOINT_Y_2, 11, 0, 5, 16) |
0 | 54 |
TILE_SEQ_END() |
55 |
}; |
|
56 |
||
4229
558d5a64b24b
(svn r5785) Fix(5771) : Silenced a warning in MSVC that prevented from compiling.
belugas
parents:
4225
diff
changeset
|
57 |
static const DrawTileSprites _waypoint_gfx_table[] = { |
6878
7d1ff2f621c7
(svn r12351) [NewGRF_ports] -Sync: with trunk r12051:12350.
richk
parents:
5920
diff
changeset
|
58 |
{ {SPR_RAIL_TRACK_X, PAL_NONE}, _waypoint_gfx_X }, |
7d1ff2f621c7
(svn r12351) [NewGRF_ports] -Sync: with trunk r12051:12350.
richk
parents:
5920
diff
changeset
|
59 |
{ {SPR_RAIL_TRACK_Y, PAL_NONE}, _waypoint_gfx_Y } |
3528 | 60 |
}; |
6878
7d1ff2f621c7
(svn r12351) [NewGRF_ports] -Sync: with trunk r12051:12350.
richk
parents:
5920
diff
changeset
|
61 |
|
7d1ff2f621c7
(svn r12351) [NewGRF_ports] -Sync: with trunk r12051:12350.
richk
parents:
5920
diff
changeset
|
62 |
#undef TILE_SEQ_LINE |
7d1ff2f621c7
(svn r12351) [NewGRF_ports] -Sync: with trunk r12051:12350.
richk
parents:
5920
diff
changeset
|
63 |
#undef TILE_SEQ_END |
7d1ff2f621c7
(svn r12351) [NewGRF_ports] -Sync: with trunk r12051:12350.
richk
parents:
5920
diff
changeset
|
64 |