Debian Codegraph @

src/engine/pal.h

raw symbols SCIP
1 /***************************************************************************
2 * fheroes2: https://github.com/ihhub/fheroes2 *
3 * Copyright (C) 2020 - 2025 *
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19 ***************************************************************************/
20
21 #pragma once
22
23 #include <cstdint>
24 #include <vector>
25
26 namespace PAL
27 {
28 enum class PaletteType : int
29 {
30 STANDARD, // default
31 YELLOW_FONT,
32 WHITE_FONT,
33 GRAY_FONT,
34 RED, // for Blood Lust spell animation
35 GRAY, // for Petrify spell effect
36 BROWN,
37 TAN, // for Puzzle image generation
38 NO_CYCLE,
39 MIRROR_IMAGE,
40 DARKENING, // for disabled buttons
41 GOOD_TO_EVIL_INTERFACE, // a custom palette for converting Good Interface images into Evil Interface images.
42 GOOD_TO_EVIL_BUTTON, // for converting Good style buttons into Evil style buttons.
43 PURPLE, // For random object images.
44 CUSTOM
45 };
46
47 std::vector<uint8_t> GetCyclingPalette( const uint32_t stepId );
48 const std::vector<uint8_t> & GetPalette( const PaletteType type );
49 std::vector<uint8_t> CombinePalettes( const std::vector<uint8_t> & first, const std::vector<uint8_t> & second );
50 }