-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy pathimage_data.hh
66 lines (56 loc) · 1.74 KB
/
image_data.hh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*
* Copyright ViewTouch, Inc., 1995, 1996, 1997, 1998
* This program 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.
*
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*
* image_data.hh - revision 25 (1/7/98)
* Data for textures in XPM format
*/
#ifndef _IMAGE_DATA_HH
#define _IMAGE_DATA_HH
#include <array>
#include <cstddef> // size_t
/**** Image Data ****/
enum textures {
IMAGE_SAND,
IMAGE_LIT_SAND,
IMAGE_DARK_SAND,
IMAGE_LITE_WOOD,
IMAGE_WOOD,
IMAGE_DARK_WOOD,
IMAGE_GRAY_PARCHMENT,
IMAGE_GRAY_MARBLE,
IMAGE_GREEN_MARBLE,
IMAGE_PARCHMENT,
IMAGE_PEARL,
IMAGE_CANVAS,
IMAGE_TAN_PARCHMENT,
IMAGE_SMOKE,
IMAGE_LEATHER,
IMAGE_BLUE_PARCHMENT,
IMAGE_GRADIENT,
IMAGE_GRADIENTBROWN,
IMAGE_BLACK,
IMAGE_GREYSAND,
IMAGE_WHITEMESH,
IMAGE_COUNT // 21 // number of images
};
constexpr int IMAGE_CLEAR = 253;
constexpr int IMAGE_UNCHANGED = 254;
constexpr int IMAGE_DEFAULT = 255;
extern const std::array<const char**, IMAGE_COUNT> ImageData;
/**** Functions ****/
int ImageColorsUsed(); // Returns total colors used in all xpm files
int ImageWidth(const size_t image);
int ImageHeight(const size_t image);
#endif