mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-16 03:23:15 +01:00
110 lines
2.5 KiB
C
110 lines
2.5 KiB
C
#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 _COLOUR_H_
|
|
#define _COLOUR_H_
|
|
|
|
#include "../common.h"
|
|
|
|
/**
|
|
* Colour IDs as used by the colour dropdown, NOT palette indices.
|
|
*/
|
|
enum {
|
|
COLOUR_BLACK,
|
|
COLOUR_GREY,
|
|
COLOUR_WHITE,
|
|
COLOUR_DARK_PURPLE,
|
|
COLOUR_LIGHT_PURPLE,
|
|
COLOUR_BRIGHT_PURPLE,
|
|
COLOUR_DARK_BLUE,
|
|
COLOUR_LIGHT_BLUE,
|
|
COLOUR_ICY_BLUE,
|
|
COLOUR_TEAL,
|
|
COLOUR_AQUAMARINE,
|
|
COLOUR_SATURATED_GREEN,
|
|
COLOUR_DARK_GREEN,
|
|
COLOUR_MOSS_GREEN,
|
|
COLOUR_BRIGHT_GREEN,
|
|
COLOUR_OLIVE_GREEN,
|
|
COLOUR_DARK_OLIVE_GREEN,
|
|
COLOUR_BRIGHT_YELLOW,
|
|
COLOUR_YELLOW,
|
|
COLOUR_DARK_YELLOW,
|
|
COLOUR_LIGHT_ORANGE,
|
|
COLOUR_DARK_ORANGE,
|
|
COLOUR_LIGHT_BROWN,
|
|
COLOUR_SATURATED_BROWN,
|
|
COLOUR_DARK_BROWN,
|
|
COLOUR_SALMON_PINK,
|
|
COLOUR_BORDEAUX_RED,
|
|
COLOUR_SATURATED_RED,
|
|
COLOUR_BRIGHT_RED,
|
|
COLOUR_DARK_PINK,
|
|
COLOUR_BRIGHT_PINK,
|
|
COLOUR_LIGHT_PINK
|
|
};
|
|
|
|
/**
|
|
* These colours change depending on the current water colours.
|
|
*/
|
|
enum {
|
|
COLOUR_DARK_WATER = 9,
|
|
COLOUR_LIGHT_WATER = 10
|
|
};
|
|
|
|
#define COLOUR_FLAG_OUTLINE (1 << 5)
|
|
#define COLOUR_FLAG_INSET (1 << 6)
|
|
#define COLOUR_FLAG_TRANSLUCENT (1 << 7)
|
|
#define TRANSLUCENT(x) ((x) | COLOUR_FLAG_TRANSLUCENT)
|
|
#define NOT_TRANSLUCENT(x) ((x) & ~COLOUR_FLAG_TRANSLUCENT)
|
|
|
|
#define NUM_COLOURS 32
|
|
|
|
#pragma pack(push, 1)
|
|
|
|
typedef struct rct_colour_map_a {
|
|
uint8 darkest;
|
|
uint8 darker;
|
|
uint8 dark;
|
|
uint8 mid_dark;
|
|
uint8 mid_light;
|
|
uint8 light;
|
|
uint8 lighter;
|
|
uint8 lightest;
|
|
} rct_colour_map_a;
|
|
assert_struct_size(rct_colour_map_a, 8);
|
|
|
|
typedef struct rct_colour_map_b {
|
|
uint8 a;
|
|
uint8 b;
|
|
uint8 c;
|
|
uint8 d;
|
|
uint8 e;
|
|
uint8 f;
|
|
uint8 g;
|
|
uint8 h;
|
|
} rct_colour_map_b;
|
|
assert_struct_size(rct_colour_map_b, 8);
|
|
|
|
#pragma pack(pop)
|
|
|
|
extern rct_colour_map_a *ColourMapA;
|
|
extern rct_colour_map_b *ColourMapB;
|
|
|
|
void colours_init_maps();
|
|
|
|
#endif
|