2009-08-21 20:21:05 +00:00
|
|
|
/*
|
|
|
|
* This file is part of OpenTTD.
|
|
|
|
* OpenTTD 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, version 2.
|
|
|
|
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
* See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2007-12-23 10:56:02 +00:00
|
|
|
/** @file gfx_func.h Functions related to the gfx engine. */
|
2007-03-01 01:24:44 +00:00
|
|
|
|
2007-09-09 10:13:17 +00:00
|
|
|
/**
|
|
|
|
* @defgroup dirty Dirty
|
|
|
|
*
|
|
|
|
* Handles the repaint of some part of the screen.
|
|
|
|
*
|
|
|
|
* Some places in the code are called functions which makes something "dirty".
|
|
|
|
* This has nothing to do with making a Tile or Window darker or less visible.
|
|
|
|
* This term comes from memory caching and is used to define an object must
|
|
|
|
* be repaint. If some data of an object (like a Tile, Window, Vehicle, whatever)
|
|
|
|
* are changed which are so extensive the object must be repaint its marked
|
|
|
|
* as "dirty". The video driver repaint this object instead of the whole screen
|
|
|
|
* (this is btw. also possible if needed). This is used to avoid a
|
|
|
|
* flickering of the screen by the video driver constantly repainting it.
|
|
|
|
*
|
|
|
|
* This whole mechanism is controlled by an rectangle defined in #_invalid_rect. This
|
|
|
|
* rectangle defines the area on the screen which must be repaint. If a new object
|
|
|
|
* needs to be repainted this rectangle is extended to 'catch' the object on the
|
2013-01-08 22:46:42 +00:00
|
|
|
* screen. At some point (which is normally uninteresting for patch writers) this
|
2007-09-09 10:13:17 +00:00
|
|
|
* rectangle is send to the video drivers method
|
|
|
|
* VideoDriver::MakeDirty and it is truncated back to an empty rectangle. At some
|
2013-01-08 22:46:42 +00:00
|
|
|
* later point (which is uninteresting, too) the video driver
|
2007-09-09 10:13:17 +00:00
|
|
|
* repaints all these saved rectangle instead of the whole screen and drop the
|
2019-09-29 20:27:32 +00:00
|
|
|
* rectangle information. Then a new round begins by marking objects "dirty".
|
2007-09-09 10:13:17 +00:00
|
|
|
*
|
|
|
|
* @see VideoDriver::MakeDirty
|
|
|
|
* @see _invalid_rect
|
|
|
|
* @see _screen
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2007-12-23 10:56:02 +00:00
|
|
|
#ifndef GFX_FUNC_H
|
|
|
|
#define GFX_FUNC_H
|
|
|
|
|
|
|
|
#include "gfx_type.h"
|
|
|
|
#include "strings_type.h"
|
2013-08-05 20:36:36 +00:00
|
|
|
#include "string_type.h"
|
2007-01-13 14:43:46 +00:00
|
|
|
|
2007-03-07 11:47:46 +00:00
|
|
|
void GameLoop();
|
2007-01-13 14:43:46 +00:00
|
|
|
|
2007-03-07 11:47:46 +00:00
|
|
|
void CreateConsole();
|
2007-01-13 14:43:46 +00:00
|
|
|
|
2007-03-01 01:24:44 +00:00
|
|
|
extern byte _dirkeys; ///< 1 = left, 2 = up, 4 = right, 8 = down
|
2007-01-13 14:43:46 +00:00
|
|
|
extern bool _fullscreen;
|
2014-04-27 12:15:14 +00:00
|
|
|
extern byte _support8bpp;
|
2007-01-13 14:43:46 +00:00
|
|
|
extern CursorVars _cursor;
|
2007-03-01 01:24:44 +00:00
|
|
|
extern bool _ctrl_pressed; ///< Is Ctrl pressed?
|
|
|
|
extern bool _shift_pressed; ///< Is Shift pressed?
|
2021-02-28 14:41:03 +00:00
|
|
|
extern uint16 _game_speed;
|
2007-01-13 14:43:46 +00:00
|
|
|
|
|
|
|
extern bool _left_button_down;
|
|
|
|
extern bool _left_button_clicked;
|
|
|
|
extern bool _right_button_down;
|
|
|
|
extern bool _right_button_clicked;
|
|
|
|
|
|
|
|
extern DrawPixelInfo _screen;
|
2008-01-11 17:12:41 +00:00
|
|
|
extern bool _screen_disable_anim; ///< Disable palette animation (important for 32bpp-anim blitter during giant screenshot)
|
2007-01-13 14:43:46 +00:00
|
|
|
|
2019-04-12 16:46:49 +00:00
|
|
|
extern std::vector<Dimension> _resolutions;
|
2008-06-16 19:38:41 +00:00
|
|
|
extern Dimension _cur_resolution;
|
2011-12-08 18:13:29 +00:00
|
|
|
extern Palette _cur_palette; ///< Current palette
|
2007-01-13 14:43:46 +00:00
|
|
|
|
2021-08-19 16:39:44 +00:00
|
|
|
void HandleToolbarHotkey(int hotkey);
|
2013-08-05 20:36:36 +00:00
|
|
|
void HandleKeypress(uint keycode, WChar key);
|
2019-04-10 21:07:06 +00:00
|
|
|
void HandleTextInput(const char *str, bool marked = false, const char *caret = nullptr, const char *insert_location = nullptr, const char *replacement_end = nullptr);
|
2008-02-17 17:00:43 +00:00
|
|
|
void HandleCtrlChanged();
|
2007-03-07 11:47:46 +00:00
|
|
|
void HandleMouseEvents();
|
|
|
|
void UpdateWindows();
|
2021-02-28 14:41:03 +00:00
|
|
|
void ChangeGameSpeed(bool enable_fast_forward);
|
2007-01-13 14:43:46 +00:00
|
|
|
|
2007-03-07 11:47:46 +00:00
|
|
|
void DrawMouseCursor();
|
|
|
|
void ScreenSizeChanged();
|
|
|
|
void GameSizeChanged();
|
2021-01-08 21:15:06 +00:00
|
|
|
void UpdateGUIZoom();
|
2022-09-07 20:17:10 +00:00
|
|
|
bool AdjustGUIZoom();
|
2007-03-07 11:47:46 +00:00
|
|
|
void UndrawMouseCursor();
|
2007-01-13 14:43:46 +00:00
|
|
|
|
2010-05-13 09:44:44 +00:00
|
|
|
/** Size of the buffer used for drawing strings. */
|
|
|
|
static const int DRAW_STRING_BUFFER = 2048;
|
2008-08-12 11:21:37 +00:00
|
|
|
|
2004-08-09 17:04:08 +00:00
|
|
|
void RedrawScreenRect(int left, int top, int right, int bottom);
|
|
|
|
void GfxScroll(int left, int top, int width, int height, int xo, int yo);
|
2005-07-17 15:54:57 +00:00
|
|
|
|
2019-04-10 21:07:06 +00:00
|
|
|
Dimension GetSpriteSize(SpriteID sprid, Point *offset = nullptr, ZoomLevel zoom = ZOOM_LVL_GUI);
|
2022-09-23 12:35:32 +00:00
|
|
|
Dimension GetScaledSpriteSize(SpriteID sprid); /* widget.cpp */
|
2019-04-10 21:07:06 +00:00
|
|
|
void DrawSpriteViewport(SpriteID img, PaletteID pal, int x, int y, const SubSprite *sub = nullptr);
|
|
|
|
void DrawSprite(SpriteID img, PaletteID pal, int x, int y, const SubSprite *sub = nullptr, ZoomLevel zoom = ZOOM_LVL_GUI);
|
2021-12-30 23:36:20 +00:00
|
|
|
std::unique_ptr<uint32[]> DrawSpriteToRgbaBuffer(SpriteID spriteId, ZoomLevel zoom = ZOOM_LVL_GUI);
|
2005-09-10 07:38:03 +00:00
|
|
|
|
2011-11-20 11:50:12 +00:00
|
|
|
int DrawString(int left, int right, int top, const char *str, TextColour colour = TC_FROMSTRING, StringAlignment align = SA_LEFT, bool underline = false, FontSize fontsize = FS_NORMAL);
|
2021-05-06 14:32:57 +00:00
|
|
|
int DrawString(int left, int right, int top, const std::string &str, TextColour colour = TC_FROMSTRING, StringAlignment align = SA_LEFT, bool underline = false, FontSize fontsize = FS_NORMAL);
|
2011-11-20 11:50:12 +00:00
|
|
|
int DrawString(int left, int right, int top, StringID str, TextColour colour = TC_FROMSTRING, StringAlignment align = SA_LEFT, bool underline = false, FontSize fontsize = FS_NORMAL);
|
|
|
|
int DrawStringMultiLine(int left, int right, int top, int bottom, const char *str, TextColour colour = TC_FROMSTRING, StringAlignment align = (SA_TOP | SA_LEFT), bool underline = false, FontSize fontsize = FS_NORMAL);
|
2021-05-06 14:32:57 +00:00
|
|
|
int DrawStringMultiLine(int left, int right, int top, int bottom, const std::string &str, TextColour colour = TC_FROMSTRING, StringAlignment align = (SA_TOP | SA_LEFT), bool underline = false, FontSize fontsize = FS_NORMAL);
|
2011-11-20 11:50:12 +00:00
|
|
|
int DrawStringMultiLine(int left, int right, int top, int bottom, StringID str, TextColour colour = TC_FROMSTRING, StringAlignment align = (SA_TOP | SA_LEFT), bool underline = false, FontSize fontsize = FS_NORMAL);
|
2009-03-21 18:28:01 +00:00
|
|
|
|
2021-04-22 00:17:30 +00:00
|
|
|
void DrawCharCentered(WChar c, const Rect &r, TextColour colour);
|
2008-03-26 10:08:17 +00:00
|
|
|
|
2009-02-09 02:09:47 +00:00
|
|
|
void GfxFillRect(int left, int top, int right, int bottom, int colour, FillRectMode mode = FILLRECT_OPAQUE);
|
2020-01-05 14:19:32 +00:00
|
|
|
void GfxFillPolygon(const std::vector<Point> &shape, int colour, FillRectMode mode = FILLRECT_OPAQUE);
|
2013-10-23 19:41:20 +00:00
|
|
|
void GfxDrawLine(int left, int top, int right, int bottom, int colour, int width = 1, int dash = 0);
|
2007-09-26 19:27:29 +00:00
|
|
|
void DrawBox(int x, int y, int dx1, int dy1, int dx2, int dy2, int dx3, int dy3);
|
2004-08-09 17:04:08 +00:00
|
|
|
|
2022-09-28 16:16:46 +00:00
|
|
|
/* Versions of DrawString/DrawStringMultiLine that accept a Rect instead of separate left, right, top and bottom parameters. */
|
|
|
|
static inline int DrawString(const Rect &r, const char *str, TextColour colour = TC_FROMSTRING, StringAlignment align = SA_LEFT, bool underline = false, FontSize fontsize = FS_NORMAL)
|
|
|
|
{
|
|
|
|
return DrawString(r.left, r.right, r.top, str, colour, align, underline, fontsize);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline int DrawString(const Rect &r, const std::string &str, TextColour colour = TC_FROMSTRING, StringAlignment align = SA_LEFT, bool underline = false, FontSize fontsize = FS_NORMAL)
|
|
|
|
{
|
|
|
|
return DrawString(r.left, r.right, r.top, str, colour, align, underline, fontsize);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline int DrawString(const Rect &r, StringID str, TextColour colour = TC_FROMSTRING, StringAlignment align = SA_LEFT, bool underline = false, FontSize fontsize = FS_NORMAL)
|
|
|
|
{
|
|
|
|
return DrawString(r.left, r.right, r.top, str, colour, align, underline, fontsize);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline int DrawStringMultiLine(const Rect &r, const char *str, TextColour colour = TC_FROMSTRING, StringAlignment align = (SA_TOP | SA_LEFT), bool underline = false, FontSize fontsize = FS_NORMAL)
|
|
|
|
{
|
|
|
|
return DrawStringMultiLine(r.left, r.right, r.top, r.bottom, str, colour, align, underline, fontsize);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline int DrawStringMultiLine(const Rect &r, const std::string &str, TextColour colour = TC_FROMSTRING, StringAlignment align = (SA_TOP | SA_LEFT), bool underline = false, FontSize fontsize = FS_NORMAL)
|
|
|
|
{
|
|
|
|
return DrawStringMultiLine(r.left, r.right, r.top, r.bottom, str, colour, align, underline, fontsize);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline int DrawStringMultiLine(const Rect &r, StringID str, TextColour colour = TC_FROMSTRING, StringAlignment align = (SA_TOP | SA_LEFT), bool underline = false, FontSize fontsize = FS_NORMAL)
|
|
|
|
{
|
|
|
|
return DrawStringMultiLine(r.left, r.right, r.top, r.bottom, str, colour, align, underline, fontsize);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void GfxFillRect(const Rect &r, int colour, FillRectMode mode = FILLRECT_OPAQUE)
|
|
|
|
{
|
|
|
|
GfxFillRect(r.left, r.top, r.right, r.bottom, colour, mode);
|
|
|
|
}
|
|
|
|
|
2010-05-30 15:32:37 +00:00
|
|
|
Dimension GetStringBoundingBox(const char *str, FontSize start_fontsize = FS_NORMAL);
|
2021-06-12 17:13:22 +00:00
|
|
|
Dimension GetStringBoundingBox(const std::string &str, FontSize start_fontsize = FS_NORMAL);
|
2022-10-23 14:45:47 +00:00
|
|
|
Dimension GetStringBoundingBox(StringID strid, FontSize start_fontsize = FS_NORMAL);
|
2013-10-06 11:29:14 +00:00
|
|
|
int GetStringHeight(const char *str, int maxw, FontSize fontsize = FS_NORMAL);
|
2008-07-22 19:25:47 +00:00
|
|
|
int GetStringHeight(StringID str, int maxw);
|
2013-06-09 12:21:44 +00:00
|
|
|
int GetStringLineCount(StringID str, int maxw);
|
2009-09-02 20:40:56 +00:00
|
|
|
Dimension GetStringMultiLineBoundingBox(StringID str, const Dimension &suggestion);
|
2012-01-12 19:11:51 +00:00
|
|
|
Dimension GetStringMultiLineBoundingBox(const char *str, const Dimension &suggestion);
|
2011-12-10 12:56:37 +00:00
|
|
|
void LoadStringWidthTable(bool monospace = false);
|
2013-08-05 20:35:23 +00:00
|
|
|
Point GetCharPosInString(const char *str, const char *ch, FontSize start_fontsize = FS_NORMAL);
|
2013-08-05 20:37:53 +00:00
|
|
|
const char *GetCharAtPosition(const char *str, int x, FontSize start_fontsize = FS_NORMAL);
|
2007-09-09 10:13:17 +00:00
|
|
|
|
2007-03-07 11:47:46 +00:00
|
|
|
void DrawDirtyBlocks();
|
2020-06-07 22:38:06 +00:00
|
|
|
void AddDirtyBlock(int left, int top, int right, int bottom);
|
2007-03-07 11:47:46 +00:00
|
|
|
void MarkWholeScreenDirty();
|
2004-08-09 17:04:08 +00:00
|
|
|
|
2021-06-17 08:34:43 +00:00
|
|
|
bool CopyPalette(Palette &local_palette, bool force_copy = false);
|
2007-03-07 11:47:46 +00:00
|
|
|
void GfxInitPalettes();
|
2014-01-03 08:51:49 +00:00
|
|
|
void CheckBlitter();
|
2004-08-09 17:04:08 +00:00
|
|
|
|
2009-01-10 00:31:47 +00:00
|
|
|
bool FillDrawPixelInfo(DrawPixelInfo *n, int left, int top, int width, int height);
|
2004-08-09 17:04:08 +00:00
|
|
|
|
2017-03-23 22:00:00 +00:00
|
|
|
/**
|
|
|
|
* Determine where to draw a centred object inside a widget.
|
|
|
|
* @param min The top or left coordinate.
|
|
|
|
* @param max The bottom or right coordinate.
|
|
|
|
* @param size The height or width of the object to draw.
|
|
|
|
* @return Offset of where to start drawing the object.
|
|
|
|
*/
|
2017-03-25 23:19:41 +00:00
|
|
|
static inline int CenterBounds(int min, int max, int size)
|
2017-03-23 22:00:00 +00:00
|
|
|
{
|
2022-08-30 07:57:19 +00:00
|
|
|
return (min + max - size + 1) / 2;
|
2017-03-23 22:00:00 +00:00
|
|
|
}
|
|
|
|
|
2007-03-01 01:24:44 +00:00
|
|
|
/* window.cpp */
|
2004-08-09 17:04:08 +00:00
|
|
|
void DrawOverlappedWindowForAll(int left, int top, int right, int bottom);
|
|
|
|
|
2016-08-15 18:32:48 +00:00
|
|
|
void SetMouseCursorBusy(bool busy);
|
2010-01-21 01:38:13 +00:00
|
|
|
void SetMouseCursor(CursorID cursor, PaletteID pal);
|
2007-02-24 15:05:14 +00:00
|
|
|
void SetAnimatedMouseCursor(const AnimCursor *table);
|
2007-03-07 11:47:46 +00:00
|
|
|
void CursorTick();
|
2010-08-05 19:23:19 +00:00
|
|
|
void UpdateCursorSize();
|
2004-08-09 17:04:08 +00:00
|
|
|
bool ChangeResInGame(int w, int h);
|
2019-04-12 16:46:49 +00:00
|
|
|
void SortResolutions();
|
2008-01-01 14:20:48 +00:00
|
|
|
bool ToggleFullScreen(bool fs);
|
2004-08-09 17:04:08 +00:00
|
|
|
|
2007-03-01 01:24:44 +00:00
|
|
|
/* gfx.cpp */
|
2020-05-17 21:31:49 +00:00
|
|
|
byte GetCharacterWidth(FontSize size, WChar key);
|
2009-12-20 16:42:35 +00:00
|
|
|
byte GetDigitWidth(FontSize size = FS_NORMAL);
|
2013-06-01 15:10:32 +00:00
|
|
|
void GetBroadestDigit(uint *front, uint *next, FontSize size = FS_NORMAL);
|
2006-05-09 13:23:04 +00:00
|
|
|
|
2013-06-23 15:32:09 +00:00
|
|
|
int GetCharacterHeight(FontSize size);
|
2004-08-09 17:04:08 +00:00
|
|
|
|
2016-12-25 17:55:10 +00:00
|
|
|
/** Height of characters in the small (#FS_SMALL) font. @note Some characters may be oversized. */
|
2009-03-25 20:01:34 +00:00
|
|
|
#define FONT_HEIGHT_SMALL (GetCharacterHeight(FS_SMALL))
|
2009-06-20 15:48:55 +00:00
|
|
|
|
2016-12-25 17:55:10 +00:00
|
|
|
/** Height of characters in the normal (#FS_NORMAL) font. @note Some characters may be oversized. */
|
2009-03-25 20:01:34 +00:00
|
|
|
#define FONT_HEIGHT_NORMAL (GetCharacterHeight(FS_NORMAL))
|
2009-06-20 15:48:55 +00:00
|
|
|
|
2016-12-25 17:55:10 +00:00
|
|
|
/** Height of characters in the large (#FS_LARGE) font. @note Some characters may be oversized. */
|
2009-03-25 20:01:34 +00:00
|
|
|
#define FONT_HEIGHT_LARGE (GetCharacterHeight(FS_LARGE))
|
|
|
|
|
2016-12-25 17:55:10 +00:00
|
|
|
/** Height of characters in the large (#FS_MONO) font. @note Some characters may be oversized. */
|
2011-11-20 11:56:51 +00:00
|
|
|
#define FONT_HEIGHT_MONO (GetCharacterHeight(FS_MONO))
|
|
|
|
|
2007-12-23 10:56:02 +00:00
|
|
|
extern DrawPixelInfo *_cur_dpi;
|
2007-11-04 00:08:57 +00:00
|
|
|
|
2022-01-08 11:01:37 +00:00
|
|
|
/**
|
|
|
|
* Checks if a Colours value is valid.
|
|
|
|
*
|
|
|
|
* @param colours The value to check
|
|
|
|
* @return true if the given value is a valid Colours.
|
|
|
|
*/
|
|
|
|
static inline bool IsValidColours(Colours colours)
|
|
|
|
{
|
|
|
|
return colours < COLOUR_END;
|
|
|
|
}
|
|
|
|
|
2018-06-24 16:34:42 +00:00
|
|
|
TextColour GetContrastColour(uint8 background, uint8 threshold = 128);
|
2012-11-07 21:23:26 +00:00
|
|
|
|
2006-08-29 19:26:13 +00:00
|
|
|
/**
|
|
|
|
* All 16 colour gradients
|
|
|
|
* 8 colours per gradient from darkest (0) to lightest (7)
|
|
|
|
*/
|
2008-08-04 17:27:06 +00:00
|
|
|
extern byte _colour_gradient[COLOUR_END][8];
|
2004-12-12 20:36:24 +00:00
|
|
|
|
2011-05-04 17:45:16 +00:00
|
|
|
/**
|
|
|
|
* Return the colour for a particular greyscale level.
|
|
|
|
* @param level Intensity, 0 = black, 15 = white
|
|
|
|
* @return colour
|
|
|
|
*/
|
|
|
|
#define GREY_SCALE(level) (level)
|
|
|
|
|
2011-05-06 21:13:29 +00:00
|
|
|
static const uint8 PC_BLACK = GREY_SCALE(1); ///< Black palette colour.
|
2011-05-07 00:22:46 +00:00
|
|
|
static const uint8 PC_DARK_GREY = GREY_SCALE(6); ///< Dark grey palette colour.
|
2011-05-06 21:13:29 +00:00
|
|
|
static const uint8 PC_GREY = GREY_SCALE(10); ///< Grey palette colour.
|
|
|
|
static const uint8 PC_WHITE = GREY_SCALE(15); ///< White palette colour.
|
|
|
|
|
|
|
|
static const uint8 PC_VERY_DARK_RED = 0xB2; ///< Almost-black red palette colour.
|
|
|
|
static const uint8 PC_DARK_RED = 0xB4; ///< Dark red palette colour.
|
|
|
|
static const uint8 PC_RED = 0xB8; ///< Red palette colour.
|
|
|
|
|
2011-05-07 00:22:46 +00:00
|
|
|
static const uint8 PC_VERY_DARK_BROWN = 0x56; ///< Almost-black brown palette colour.
|
|
|
|
|
|
|
|
static const uint8 PC_ORANGE = 0xC2; ///< Orange palette colour.
|
|
|
|
|
2011-05-06 21:13:29 +00:00
|
|
|
static const uint8 PC_YELLOW = 0xBF; ///< Yellow palette colour.
|
|
|
|
static const uint8 PC_LIGHT_YELLOW = 0x44; ///< Light yellow palette colour.
|
|
|
|
static const uint8 PC_VERY_LIGHT_YELLOW = 0x45; ///< Almost-white yellow palette colour.
|
|
|
|
|
|
|
|
static const uint8 PC_GREEN = 0xD0; ///< Green palette colour.
|
|
|
|
|
2020-01-04 22:06:49 +00:00
|
|
|
static const uint8 PC_VERY_DARK_BLUE = 0x9A; ///< Almost-black blue palette colour.
|
2011-05-06 21:13:29 +00:00
|
|
|
static const uint8 PC_DARK_BLUE = 0x9D; ///< Dark blue palette colour.
|
2011-05-07 00:22:46 +00:00
|
|
|
static const uint8 PC_LIGHT_BLUE = 0x98; ///< Light blue palette colour.
|
2011-05-06 21:13:29 +00:00
|
|
|
|
2020-01-04 16:47:37 +00:00
|
|
|
static const uint8 PC_ROUGH_LAND = 0x52; ///< Dark green palette colour for rough land.
|
|
|
|
static const uint8 PC_GRASS_LAND = 0x54; ///< Dark green palette colour for grass land.
|
|
|
|
static const uint8 PC_BARE_LAND = 0x37; ///< Brown palette colour for bare land.
|
2021-01-12 20:32:17 +00:00
|
|
|
static const uint8 PC_RAINFOREST = 0x5C; ///< Pale green palette colour for rainforest.
|
2020-01-04 16:47:37 +00:00
|
|
|
static const uint8 PC_FIELDS = 0x25; ///< Light brown palette colour for fields.
|
|
|
|
static const uint8 PC_TREES = 0x57; ///< Green palette colour for trees.
|
|
|
|
static const uint8 PC_WATER = 0xC9; ///< Dark blue palette colour for water.
|
2007-12-23 10:56:02 +00:00
|
|
|
#endif /* GFX_FUNC_H */
|