OpenRCT2/src/ride/track_paint.h

389 lines
24 KiB
C
Raw Normal View History

#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers
/*****************************************************************************
* OpenRCT2, an open source clone of Roller Coaster Tycoon 2.
*
* OpenRCT2 is the work of many authors, a full list can be found in contributors.md
* For more information, visit https://github.com/OpenRCT2/OpenRCT2
*
* OpenRCT2 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* A full copy of the GNU General Public License can be found in licence.txt
*****************************************************************************/
#pragma endregion
#ifndef _TRACK_PAINT_H
#define _TRACK_PAINT_H
2016-09-17 21:59:55 +02:00
#include "../addresses.h"
2016-05-18 00:44:44 +02:00
#include "ride_data.h"
#include "../common.h"
#include "../paint/map_element/map_element.h"
2016-05-23 00:01:07 +02:00
#include "../paint/paint.h"
#include "../world/map.h"
2016-05-17 23:04:37 +02:00
extern const uint8 track_map_2x2[][4];
extern const uint8 edges_2x2[];
2016-05-17 20:29:45 +02:00
2016-05-17 23:04:37 +02:00
extern const uint8 track_map_3x3[][9];
extern const uint8 edges_3x3[];
2016-05-17 19:48:28 +02:00
2016-05-17 23:08:55 +02:00
extern const uint8 track_map_4x4[][16];
2016-05-17 23:04:37 +02:00
extern const uint8 edges_4x4[];
2016-05-17 20:50:29 +02:00
2016-05-21 19:31:31 +02:00
extern const uint8 track_map_1x4[][4];
2016-05-17 19:48:28 +02:00
enum {
2016-05-21 12:19:31 +02:00
SPR_FLOOR_PLANKS = 3395,
SPR_FLOOR_PLANKS_90_DEG = 3396,
2016-10-04 20:51:58 +02:00
SPR_FLOOR_PLANKS_SLOPE_NE_SW = 3397,
SPR_FLOOR_PLANKS_SLOPE_SE_NW = 3398,
SPR_FLOOR_PLANKS_SLOPE_SW_NE = 3399,
SPR_FLOOR_PLANKS_SLOPE_NW_SE = 3400,
SPR_FLOOR_PLANKS_N_SEGMENT = 3401,
SPR_FLOOR_PLANKS_E_SEGMENT = 3402,
SPR_FLOOR_PLANKS_S_SEGMENT = 3403,
SPR_FLOOR_PLANKS_W_SEGMENT = 3404,
SPR_FLOOR_METAL = 14567,
SPR_FENCE_METAL_NE = 14568,
SPR_FENCE_METAL_SE = 14569,
SPR_FENCE_METAL_SW = 14570,
SPR_FENCE_METAL_NW = 14571,
2016-05-19 19:20:32 +02:00
SPR_FLOOR_METAL_B = 14989,
SPR_FENCE_METAL_B_NE = 14990,
SPR_FENCE_METAL_B_SE = 14991,
SPR_FENCE_METAL_B_SW = 14992,
SPR_FENCE_METAL_B_NW = 14993,
2016-05-19 09:05:19 +02:00
SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_NE_SW = 16870,
SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_SE_NW = 16871,
SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_QUARTER_TURN_3_TILES_SW_SE_PART_0 = 16872,
SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_QUARTER_TURN_3_TILES_SW_SE_PART_1 = 16873,
SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_QUARTER_TURN_3_TILES_SW_SE_PART_2 = 16874,
SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_QUARTER_TURN_3_TILES_NW_SW_PART_0 = 16875,
SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_QUARTER_TURN_3_TILES_NW_SW_PART_1 = 16876,
SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_QUARTER_TURN_3_TILES_NW_SW_PART_2 = 16877,
SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_QUARTER_TURN_3_TILES_NE_NW_PART_0 = 16878,
SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_QUARTER_TURN_3_TILES_NE_NW_PART_1 = 16879,
SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_QUARTER_TURN_3_TILES_NE_NW_PART_2 = 16880,
SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_QUARTER_TURN_3_TILES_SE_NE_PART_0 = 16881,
SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_QUARTER_TURN_3_TILES_SE_NE_PART_1 = 16882,
SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_QUARTER_TURN_3_TILES_SE_NE_PART_2 = 16883,
SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_TO_25_DEG_UP_SW_NE = 16884,
SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_TO_25_DEG_UP_NW_SE = 16885,
SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_TO_25_DEG_UP_NE_SW = 16886,
SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_TO_25_DEG_UP_SE_NW = 16887,
SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_25_DEG_UP_TO_FLAT_SW_NE = 16888,
SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_25_DEG_UP_TO_FLAT_NW_SE = 16889,
SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_25_DEG_UP_TO_FLAT_NE_SW = 16890,
SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_25_DEG_UP_TO_FLAT_SE_NW = 16891,
SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_25_DEG_UP_SW_NE = 16892,
SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_25_DEG_UP_NW_SE = 16893,
SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_25_DEG_UP_NE_SW = 16894,
SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_25_DEG_UP_SE_NW = 16895,
SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_QUARTER_TURN_1_TILE_SW_NW = 16896,
SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_QUARTER_TURN_1_TILE_NW_NE = 16897,
SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_QUARTER_TURN_1_TILE_NE_SE = 16898,
SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_QUARTER_TURN_1_TILE_SE_SW = 16899,
2016-05-17 19:48:28 +02:00
SPR_FLOOR_CORK_SE_SW = 22134,
SPR_FLOOR_CORK_SW = 22135,
SPR_FLOOR_CORK_SE = 22136,
SPR_FLOOR_CORK = 22137,
SPR_FENCE_ROPE_NE = 22138,
SPR_FENCE_ROPE_SE = 22139,
SPR_FENCE_ROPE_SW = 22140,
SPR_FENCE_ROPE_NW = 22141,
2016-05-18 00:44:44 +02:00
2016-05-19 15:12:01 +02:00
SPR_STATION_PLATFORM_SW_NE = 22362,
SPR_STATION_PLATFORM_NW_SE = 22363,
SPR_STATION_PLATFORM_FENCED_SW_NE = 22364,
SPR_STATION_PLATFORM_FENCED_NW_SE = 22365,
SPR_STATION_PLATFORM_BEGIN_FENCED_SW_NE = 22366,
SPR_STATION_PLATFORM_BEGIN_FENCED_NW_SE = 22367,
SPR_STATION_PLATFORM_BEGIN_SW_NE = 22368,
SPR_STATION_PLATFORM_BEGIN_NW_SE = 22369,
2016-05-19 22:45:11 +02:00
SPR_STATION_FENCE_SW_NE = 22370,
SPR_STATION_FENCE_NW_SE = 22371,
2016-05-19 15:12:01 +02:00
SPR_STATION_BEGIN_ANGLE_FENCE_SW_NE = 22372,
SPR_STATION_BEGIN_ANGLE_FENCE_NW_SE = 22373,
SPR_STATION_FENCE_SMALL_NW_SE = 22374,
SPR_STATION_FENCE_SMALL_SW_NE = 22375,
SPR_STATION_PLATFORM_FENCED_END_RED_LIGHT_SW_NE = 22380,
SPR_STATION_PLATFORM_FENCED_END_RED_LIGHT_NW_SE = 22381,
SPR_STATION_PLATFORM_FENCED_END_GREEN_LIGHT_SW_NE = 22382,
SPR_STATION_PLATFORM_FENCED_END_GREEN_LIGHT_NW_SE = 22383,
SPR_STATION_LIGHT_BACK_NE_SW = 22384,
SPR_STATION_LIGHT_BACK_NW_SE = 22385,
SPR_STATION_LIGHT_BACK_ANGLE_FENCED_NE_SW = 22386,
SPR_STATION_LIGHT_BACK_ANGLE_FENCED_NW_SE = 22387,
SPR_STATION_PLATFORM_END_RED_LIGHT_SW_NE = 22388,
SPR_STATION_PLATFORM_END_RED_LIGHT_NW_SE = 22389,
SPR_STATION_PLATFORM_END_GREEN_LIGHT_SW_NE = 22390,
SPR_STATION_PLATFORM_END_GREEN_LIGHT_NW_SE = 22391,
2016-10-09 20:19:20 +02:00
SPR_STATION_INVERTED_FENCE_SW_NE = 22392,
SPR_STATION_INVERTED_FENCE_NW_SE = 22393,
SPR_STATION_INVERTED_BEGIN_ANGLE_FENCE_SW_NE = 22394,
SPR_STATION_INVERTED_BEGIN_ANGLE_FENCE_NW_SE = 22395,
SPR_STATION_INVERTED_LIGHT_BACK_ANGLE_FENCED_NE_SW = 22396,
SPR_STATION_INVERTED_LIGHT_BACK_ANGLE_FENCED_NW_SE = 22397,
2016-10-09 23:29:32 +02:00
SPR_STATION_INVERTED_BAR_C_SW_NE = 22398,
SPR_STATION_INVERTED_BAR_C_NW_SE = 22399,
SPR_STATION_INVERTED_BAR_D_SW_NE = 22400,
SPR_STATION_INVERTED_BAR_D_NW_SE = 22401,
2016-10-10 00:17:00 +02:00
SPR_STATION_INVERTED_BAR_E_SW_NE = 22402,
SPR_STATION_INVERTED_BAR_E_NW_SE = 22403,
2016-05-18 00:44:44 +02:00
SPR_STATION_PIER_EDGE_SE = 22404,
SPR_STATION_PIER_EDGE_SW = 22405,
SPR_STATION_PIER_EDGE_NW = 22406,
SPR_STATION_PIER_EDGE_NE = 22407,
SPR_STATION_PIER_EDGE_NW_FENCED = 22408,
SPR_STATION_PIER_EDGE_NE_FENCED = 22409,
SPR_STATION_PIER_FENCE_SE = 22410,
SPR_STATION_PIER_FENCE_SW = 22411,
2016-05-19 22:45:11 +02:00
SPR_STATION_NARROW_EDGE_SE = 22412,
SPR_STATION_NARROW_EDGE_SW = 22413,
SPR_STATION_NARROW_EDGE_FENCED_NW = 22414,
SPR_STATION_NARROW_EDGE_FENCED_NE = 22415,
SPR_STATION_NARROW_EDGE_NW = 22416,
SPR_STATION_NARROW_EDGE_NE = 22417,
2016-10-10 01:10:01 +02:00
SPR_STATION_INVERTED_BAR_F_SW_NE = 22418,
SPR_STATION_INVERTED_BAR_F_NW_SE = 22419,
2016-10-09 22:56:17 +02:00
SPR_STATION_INVERTED_BAR_0_SW_NE = 22420,
SPR_STATION_INVERTED_BAR_0_NW_SE = 22421,
2016-10-09 20:19:20 +02:00
SPR_STATION_INVERTED_BAR_A_SW_NE = 22422,
SPR_STATION_INVERTED_BAR_A_NW_SE = 22423,
SPR_STATION_INVERTED_BAR_B_SW_NE = 22424,
SPR_STATION_INVERTED_BAR_B_NW_SE = 22425,
2016-05-20 21:25:13 +02:00
SPR_STATION_BASE_A_SW_NE = 22426,
SPR_STATION_BASE_A_NW_SE = 22427,
2016-05-19 15:12:01 +02:00
SPR_STATION_BASE_B_SW_NE = 22428,
SPR_STATION_BASE_B_NW_SE = 22429,
2016-10-09 20:19:20 +02:00
SPR_STATION_BASE_C_SW_NE = 22430,
SPR_STATION_BASE_C_NW_SE = 22431,
2016-05-21 19:31:31 +02:00
SPR_STATION_BASE_D = 22432,
SPR_ON_RIDE_PHOTO_CAMERA_SMALL_N = 23485,
SPR_ON_RIDE_PHOTO_CAMERA_SMALL_E = 23486,
SPR_ON_RIDE_PHOTO_CAMERA_SMALL_S = 23487,
SPR_ON_RIDE_PHOTO_CAMERA_SMALL_W = 23488,
SPR_ON_RIDE_PHOTO_CAMERA_FLASH_SMALL_N = 23489,
SPR_ON_RIDE_PHOTO_CAMERA_FLASH_SMALL_E = 23490,
SPR_ON_RIDE_PHOTO_CAMERA_FLASH_SMALL_S = 23491,
SPR_ON_RIDE_PHOTO_CAMERA_FLASH_SMALL_W = 23492,
SPR_ON_RIDE_PHOTO_SIGN_SMALL_SW_NE = 23493,
SPR_ON_RIDE_PHOTO_SIGN_SMALL_NW_SE = 23494,
SPR_ON_RIDE_PHOTO_SIGN_SMALL_NE_SW = 23495,
SPR_ON_RIDE_PHOTO_SIGN_SMALL_SE_NW = 23496,
2016-05-19 22:21:16 +02:00
SPR_ON_RIDE_PHOTO_CAMERA_N = 25615,
SPR_ON_RIDE_PHOTO_CAMERA_E = 25616,
SPR_ON_RIDE_PHOTO_CAMERA_S = 25617,
SPR_ON_RIDE_PHOTO_CAMERA_W = 25618,
SPR_ON_RIDE_PHOTO_CAMERA_FLASH_N = 25619,
SPR_ON_RIDE_PHOTO_CAMERA_FLASH_E = 25620,
SPR_ON_RIDE_PHOTO_CAMERA_FLASH_S = 25621,
SPR_ON_RIDE_PHOTO_CAMERA_FLASH_W = 25622,
SPR_ON_RIDE_PHOTO_SIGN_SW_NE = 25623,
SPR_ON_RIDE_PHOTO_SIGN_NW_SE = 25624,
SPR_ON_RIDE_PHOTO_SIGN_NE_SW = 25625,
SPR_ON_RIDE_PHOTO_SIGN_SE_NW = 25626,
2016-05-24 13:16:08 +02:00
2016-05-25 14:43:32 +02:00
SPR_GHOST_TRAIN_SPINNING_TUNNEL_BACK_SW_NE_FRAME_0 = 28865,
SPR_GHOST_TRAIN_SPINNING_TUNNEL_BACK_SW_NE_FRAME_1 = 28866,
SPR_GHOST_TRAIN_SPINNING_TUNNEL_BACK_SW_NE_FRAME_2 = 28867,
SPR_GHOST_TRAIN_SPINNING_TUNNEL_BACK_SW_NE_FRAME_3 = 28868,
SPR_GHOST_TRAIN_SPINNING_TUNNEL_BACK_NW_SE_FRAME_0 = 28869,
SPR_GHOST_TRAIN_SPINNING_TUNNEL_BACK_NW_SE_FRAME_1 = 28870,
SPR_GHOST_TRAIN_SPINNING_TUNNEL_BACK_NW_SE_FRAME_2 = 28871,
SPR_GHOST_TRAIN_SPINNING_TUNNEL_BACK_NW_SE_FRAME_3 = 28872,
SPR_GHOST_TRAIN_SPINNING_TUNNEL_FRONT_SW_NE_FRAME_0 = 28873,
SPR_GHOST_TRAIN_SPINNING_TUNNEL_FRONT_SW_NE_FRAME_1 = 28874,
SPR_GHOST_TRAIN_SPINNING_TUNNEL_FRONT_SW_NE_FRAME_2 = 28875,
SPR_GHOST_TRAIN_SPINNING_TUNNEL_FRONT_SW_NE_FRAME_3 = 28876,
SPR_GHOST_TRAIN_SPINNING_TUNNEL_FRONT_NW_SE_FRAME_0 = 28877,
SPR_GHOST_TRAIN_SPINNING_TUNNEL_FRONT_NW_SE_FRAME_1 = 28878,
SPR_GHOST_TRAIN_SPINNING_TUNNEL_FRONT_NW_SE_FRAME_2 = 28879,
SPR_GHOST_TRAIN_SPINNING_TUNNEL_FRONT_NW_SE_FRAME_3 = 28880,
2016-05-17 19:48:28 +02:00
};
2016-09-10 23:45:54 +02:00
enum {
SCHEME_TRACK = 0,
SCHEME_SUPPORTS = 1,
SCHEME_MISC = 2,
SCHEME_3 = 3,
};
2016-10-18 01:26:38 +02:00
enum {
STATION_VARIANT_BASIC,
STATION_VARIANT_1,
STATION_VARIANT_TALL,
};
2016-09-10 23:45:54 +02:00
#ifdef NO_RCT2
extern uint32 gTrackColours[4];
#else
#define gTrackColours RCT2_ADDRESS(0x00F44198, uint32)
#endif
2016-05-17 23:08:55 +02:00
extern const uint32 floorSpritesCork[];
2016-05-17 19:48:28 +02:00
2016-05-17 23:08:55 +02:00
extern const uint32 fenceSpritesRope[];
2016-05-19 19:20:32 +02:00
extern const uint32 fenceSpritesMetalB[];
2016-05-17 19:48:28 +02:00
2016-05-19 15:12:01 +02:00
extern const uint32 trackSpritesSubmarineRideMiniHelicoptersQuarterTurn3Tiles[4][3];
extern const uint32 trackSpritesSubmarineRideMiniHelicoptersQuarterTurn1Tile[4];
2016-05-25 23:50:27 +02:00
extern const uint8 mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[];
extern const rct_xy16 defaultRightQuarterTurn5TilesOffsets[4][5];
extern const rct_xyz16 defaultRightQuarterTurn5TilesBoundOffsets[4][5];
2016-05-25 23:50:27 +02:00
extern const rct_xy16 defaultRightQuarterTurn5TilesBoundLengths[4][5];
2016-05-24 14:10:41 +02:00
extern const uint8 mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[];
extern const rct_xy16 defaultRightQuarterTurn3TilesOffsets[4][3];
extern const rct_xyz16 defaultRightQuarterTurn3TilesBoundOffsets[4][3];
2016-05-24 14:10:41 +02:00
extern const rct_xy16 defaultRightQuarterTurn3TilesBoundLengths[4][3];
2015-10-28 21:35:01 +01:00
extern const rct_xy16 defaultRightHelixUpSmallQuarterBoundLengths[4][3][2];
extern const rct_xyz16 defaultRightHelixUpSmallQuarterBoundOffsets[4][3][2];
extern const rct_xy16 defaultRightHelixUpLargeQuarterBoundLengths[4][5][2];
extern const rct_xyz16 defaultRightHelixUpLargeQuarterBoundOffsets[4][5][2];
extern const rct_xyz16 defaultLeftEighthToDiagBoundOffsets[4][4];
extern const rct_xy16 defaultLeftEighthToDiagBoundLengths[4][4];
extern const rct_xyz16 defaultRightEighthToDiagBoundOffsets[4][4];
extern const rct_xy16 defaultRightEighthToDiagBoundLengths[4][4];
extern const sint8 defaultEighthToDiagThickness[4][4];
extern const rct_xy16 defaultDiagBoundLengths[4];
extern const rct_xy16 defaultDiagTileOffsets[4];
2016-10-08 17:33:17 +02:00
extern const uint8 mapLeftEighthTurnToOrthogonal[5];
extern bool gUseOriginalRidePaint;
bool track_paint_util_has_fence(enum edge edge, rct_xy16 position, rct_map_element * mapElement, rct_ride * ride, uint8 rotation);
2016-05-17 23:08:55 +02:00
void track_paint_util_paint_floor(uint8 edges, uint32 colourFlags, uint16 height, const uint32 floorSprites[4], uint8 rotation);
void track_paint_util_paint_fences(uint8 edges, rct_xy16 position, rct_map_element * mapElement, rct_ride * ride, uint32 colourFlags, uint16 height, const uint32 fenceSprites[4], uint8 rotation);
2016-05-18 00:44:44 +02:00
bool track_paint_util_draw_station_covers(enum edge edge, bool hasFence, const rct_ride_entrance_definition * entranceStyle, uint8 direction, uint16 height);
2016-10-18 01:26:38 +02:00
bool track_paint_util_draw_station_covers_2(enum edge edge, bool hasFence, const rct_ride_entrance_definition * entranceStyle, uint8 direction, uint16 height, uint8 stationVariant);
2016-05-22 15:58:15 +02:00
void track_paint_util_draw_station_platform(rct_ride *ride, uint8 direction, int height, int zOffset, rct_map_element * mapElement);
2016-05-22 01:21:51 +02:00
void track_paint_util_draw_station(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement);
2016-10-09 22:13:34 +02:00
void track_paint_util_draw_station_2(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement, int fenceOffsetA, int fenceOffsetB);
2016-10-18 01:26:38 +02:00
void track_paint_util_draw_station_inverted(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement, uint8 stationVariant);
2016-05-18 00:44:44 +02:00
bool track_paint_util_should_paint_supports(rct_xy16 position);
2016-05-20 21:22:47 +02:00
void track_paint_util_draw_pier(rct_ride * ride, const rct_ride_entrance_definition * entranceStyle, rct_xy16 position, uint8 direction, int height, rct_map_element * mapElement, uint8 rotation);
2016-10-04 19:39:22 +02:00
void track_paint_util_draw_station_metal_supports(uint8 direction, uint16 height, uint32 colour);
2016-10-09 19:26:11 +02:00
void track_paint_util_draw_station_metal_supports_2(uint8 direction, uint16 height, uint32 colour, uint8 type);
void track_paint_util_right_quarter_turn_5_tiles_paint(sint8 thickness, sint16 height, int direction, uint8 trackSequence, uint32 colourFlags, const uint32 sprites[4][5], const rct_xy16 offsets[4][5], const rct_xy16 boundsLengths[4][5], const rct_xyz16 boundsOffsets[4][5], uint8 rotation);
2016-05-23 00:01:07 +02:00
void track_paint_util_right_quarter_turn_5_tiles_paint_2(sint16 height, int direction, uint8 rotation, uint8 trackSequence, uint32 colourFlags, const sprite_bb sprites[][5]);
2016-10-02 23:23:08 +02:00
void track_paint_util_right_quarter_turn_5_tiles_paint_3(sint16 height, int direction, uint8 rotation, uint8 trackSequence, uint32 colourFlags, const sprite_bb sprites[][5]);
void track_paint_util_right_quarter_turn_5_tiles_tunnel(sint16 height, uint8 direction, uint8 trackSequence, uint8 tunnelType);
void track_paint_util_right_quarter_turn_5_tiles_wooden_supports(sint16 height, uint8 direction, uint8 trackSequence);
2016-10-05 19:39:25 +02:00
void track_paint_util_right_quarter_turn_3_tiles_25_deg_up_tunnel(sint16 height, uint8 direction, uint8 trackSequence, uint8 tunnelType0, uint8 tunnelType3);
void track_paint_util_right_quarter_turn_3_tiles_25_deg_down_tunnel(sint16 height, uint8 direction, uint8 trackSequence, uint8 tunnelType0, uint8 tunnelType3);
void track_paint_util_right_quarter_turn_3_tiles_paint(sint8 thickness, sint16 height, int direction, uint8 trackSequence, uint32 colourFlags, const uint32 sprites[4][3], const rct_xy16 offsets[4][3], const rct_xy16 boundsLengths[4][3], const rct_xyz16 boundsOffsets[4][3], uint8 rotation);
2016-09-27 19:03:34 +02:00
void track_paint_util_right_quarter_turn_3_tiles_paint_2(sint8 thickness, sint16 height, int direction, uint8 trackSequence, uint32 colourFlags, const uint32 sprites[4][3], uint8 rotation);
void track_paint_util_right_quarter_turn_3_tiles_paint_2_with_height_offset(sint8 thickness, sint16 height, int direction, uint8 trackSequence, uint32 colourFlags, const uint32 sprites[4][3], uint8 rotation, sint32 heightOffset);
2016-10-02 00:08:15 +02:00
void track_paint_util_right_quarter_turn_3_tiles_paint_3(sint16 height, int direction, uint8 rotation, uint8 trackSequence, uint32 colourFlags, const sprite_bb sprites[4][3]);
2016-10-04 01:10:50 +02:00
void track_paint_util_right_quarter_turn_3_tiles_paint_4(sint16 height, int direction, uint8 rotation, uint8 trackSequence, uint32 colourFlags, const sprite_bb sprites[4][3]);
2016-05-26 00:00:23 +02:00
void track_paint_util_right_quarter_turn_3_tiles_tunnel(sint16 height, uint8 direction, uint8 trackSequence, uint8 tunnelType);
2016-05-22 00:30:56 +02:00
void track_paint_util_left_quarter_turn_3_tiles_paint(sint8 thickness, sint16 height, int direction, uint8 trackSequence, uint32 colourFlags, const uint32 sprites[4][3], uint8 rotation);
2016-09-27 01:32:56 +02:00
void track_paint_util_left_quarter_turn_3_tiles_paint_with_height_offset(sint8 thickness, sint16 height, int direction, uint8 trackSequence, uint32 colourFlags, const uint32 sprites[4][3], uint8 rotation, sint32 heightOffset);
2016-09-15 19:34:33 +02:00
void track_paint_util_left_quarter_turn_3_tiles_tunnel(sint16 height, uint8 tunnelType, uint8 direction, uint8 trackSequence);
2016-05-20 23:49:34 +02:00
void track_paint_util_left_quarter_turn_1_tile_paint(sint8 thickness, sint16 height, sint16 boundBoxZOffset, int direction, uint32 colourFlags, const uint32 * sprites, uint8 rotation);
2016-05-19 15:28:50 +02:00
void track_paint_util_left_quarter_turn_1_tile_tunnel(sint16 height, uint8 direction, uint8 trackSequence);
2016-05-25 14:43:32 +02:00
void track_paint_util_spinning_tunnel_paint(sint8 thickness, sint16 height, uint8 direction, uint8 rotation);
void track_paint_util_onride_photo_small_paint(uint8 direction, sint32 height, rct_map_element *mapElement);
2016-09-25 15:51:19 +02:00
void track_paint_util_onride_photo_paint(uint8 direction, sint32 height, rct_map_element *mapElement);
2015-10-28 21:35:01 +01:00
void track_paint_util_right_helix_up_small_quarter_tiles_paint(const sint8 thickness[2], sint16 height, int direction, uint8 trackSequence, uint32 colourFlags, const uint32 sprites[4][3][2], const rct_xy16 offsets[4][3][2], const rct_xy16 boundsLengths[4][3][2], const rct_xyz16 boundsOffsets[4][3][2], uint8 rotation);
void track_paint_util_right_helix_up_large_quarter_tiles_paint(const sint8 thickness[2], sint16 height, int direction, uint8 trackSequence, uint32 colourFlags, const uint32 sprites[4][5][2], const rct_xy16 offsets[4][5][2], const rct_xy16 boundsLengths[4][5][2], const rct_xyz16 boundsOffsets[4][5][2], uint8 rotation);
void track_paint_util_eighth_to_diag_tiles_paint(const sint8 thickness[4][4], sint16 height, int direction, uint8 trackSequence, uint32 colourFlags, const uint32 sprites[4][4], const rct_xy16 offsets[4][4], const rct_xy16 boundsLengths[4][4], const rct_xyz16 boundsOffsets[4][4], uint8 rotation);
void track_paint_util_diag_tiles_paint(sint8 thickness, sint16 height, int direction, uint8 trackSequence, uint32 colourFlags, const uint32 sprites[4], const rct_xy16 offsets[4], const rct_xy16 boundsLengths[4], const rct_xyz16 boundsOffsets[4], uint8 rotation);
2016-05-19 15:12:01 +02:00
typedef void (*TRACK_PAINT_FUNCTION)(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element* mapElement);
typedef TRACK_PAINT_FUNCTION (*TRACK_PAINT_FUNCTION_GETTER)(int trackType, int direction);
2016-10-09 14:17:02 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_spiral_rc(int trackType, int direction);
2016-10-09 14:19:14 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_stand_up_rc(int trackType, int direction);
2016-10-09 14:20:04 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_suspended_swinging_rc(int trackType, int direction);
2016-10-09 14:23:34 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_inverted_rc(int trackType, int direction);
2016-09-18 02:34:17 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_junior_rc(int trackType, int direction);
2016-05-25 13:58:50 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_monorail(int trackType, int direction);
2016-10-09 14:25:17 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_mini_suspended_rc(int trackType, int direction);
2016-10-15 13:25:59 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_miniature_railway(int trackType, int direction);
2016-05-20 21:10:22 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_boat_ride(int trackType, int direction);
TRACK_PAINT_FUNCTION get_track_paint_function_wooden_wild_mouse(int trackType, int direction);
2016-10-09 14:26:27 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_steeplechase(int trackType, int direction);
2016-05-24 10:26:32 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_car_ride(int trackType, int direction);
2016-05-20 09:11:04 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_launched_freefall(int trackType, int direction);
2016-10-09 14:30:19 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_bobsleigh_rc(int trackType, int direction);
2016-05-19 19:20:32 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_observation_tower(int trackType, int direction);
2016-10-09 14:31:33 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_looping_rc(int trackType, int direction);
2016-09-27 23:44:17 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_dinghy_slide(int trackType, int direction);
2016-10-09 14:33:00 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_mine_train_rc(int trackType, int direction);
2016-05-07 00:17:49 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_chairlift(int trackType, int direction);
2016-10-09 14:34:11 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_corkscrew_rc(int trackType, int direction);
2016-03-25 14:54:28 +01:00
TRACK_PAINT_FUNCTION get_track_paint_function_maze(int trackType, int direction);
2016-03-24 21:52:32 +01:00
TRACK_PAINT_FUNCTION get_track_paint_function_spiral_slide(int trackType, int direction);
2016-05-22 11:09:07 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_go_karts(int trackType, int direction);
2016-09-25 13:46:15 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_log_flume(int trackType, int direction);
2016-05-19 19:06:17 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_river_rapids(int trackType, int direction);
2016-03-25 15:43:03 +01:00
TRACK_PAINT_FUNCTION get_track_paint_function_dodgems(int trackType, int direction);
2016-05-20 21:25:13 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_pirate_ship(int trackType, int direction);
2016-05-21 19:31:31 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_swinging_inverter_ship(int trackType, int direction);
2016-05-18 23:14:41 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_ferris_wheel(int trackType, int direction);
2016-05-21 17:07:29 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_motionsimulator(int trackType, int direction);
2016-05-18 19:18:05 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_3d_cinema(int trackType, int direction);
TRACK_PAINT_FUNCTION get_track_paint_function_topspin(int trackType, int direction);
2016-05-21 14:20:02 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_space_rings(int trackType, int direction);
2016-09-18 02:34:17 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_reverse_freefall_rc(int trackType, int direction);
2016-05-20 09:11:19 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_lift(int trackType, int direction);
2016-10-09 14:35:35 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_vertical_drop_rc(int trackType, int direction);
TRACK_PAINT_FUNCTION get_track_paint_function_shop(int trackType, int direction);
2016-05-18 21:48:05 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_merry_go_round(int trackType, int direction);
TRACK_PAINT_FUNCTION get_track_paint_function_facility(int trackType, int direction);
2016-05-21 19:30:11 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_twist(int trackType, int direction);
2016-05-18 23:13:53 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_haunted_house(int trackType, int direction);
2016-05-18 19:16:37 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_circus_show(int trackType, int direction);
2016-05-24 20:44:59 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_ghost_train(int trackType, int direction);
2016-10-09 14:38:20 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_twister_rc(int trackType, int direction);
2016-10-09 14:39:30 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_side_friction_rc(int trackType, int direction);
TRACK_PAINT_FUNCTION get_track_paint_function_wooden_rc(int trackType, int direction);
2016-10-04 19:21:55 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_wild_mouse(int trackType, int direction);
2016-10-09 14:41:10 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_multi_dimension_rc(int trackType, int direction);
2016-10-09 14:42:36 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_flying_rc(int trackType, int direction);
2016-05-21 22:56:18 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_virginia_reel(int trackType, int direction);
2016-09-24 17:02:08 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_splash_boats(int trackType, int direction);
2016-05-19 09:05:19 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_mini_helicopters(int trackType, int direction);
2016-10-09 14:43:49 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_lay_down_rc(int trackType, int direction);
2016-10-09 14:47:46 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_suspended_monorail(int trackType, int direction);
TRACK_PAINT_FUNCTION get_track_paint_function_reverser_rc(int trackType, int direction);
TRACK_PAINT_FUNCTION get_track_paint_function_heartline_twister_rc(int trackType, int direction);
2016-05-20 21:46:31 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_mini_golf(int trackType, int direction);
2016-10-09 14:59:31 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_giga_rc(int trackType, int direction);
2016-05-20 00:33:15 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_roto_drop(int trackType, int direction);
2016-05-18 21:47:56 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_flying_saucers(int trackType, int direction);
2016-04-11 15:21:13 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_crooked_house(int trackType, int direction);
2016-05-22 16:14:27 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_monorail_cycles(int trackType, int direction);
2016-10-09 15:01:32 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_compact_inverted_rc(int trackType, int direction);
TRACK_PAINT_FUNCTION get_track_paint_function_water_rc(int trackType, int direction);
TRACK_PAINT_FUNCTION get_track_paint_function_air_powered_vertical_rc(int trackType, int direction);
2016-10-09 15:13:49 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_inverted_hairpin_rc(int trackType, int direction);
2016-05-22 00:35:39 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_magic_carpet(int trackType, int direction);
2016-05-09 08:44:07 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_submarine_ride(int trackType, int direction);
2016-05-22 12:31:13 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_river_rafts(int trackType, int direction);
2016-05-20 21:24:43 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_enterprise(int trackType, int direction);
2016-10-09 15:19:53 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_inverted_impulse_rc(int trackType, int direction);
2016-10-09 15:21:18 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_mini_rc(int trackType, int direction);
2016-10-09 15:22:11 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_mine_ride(int trackType, int direction);
2016-10-09 15:23:04 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_lim_launched_rc(int trackType, int direction);
2015-12-21 05:03:37 +01:00
#endif