ScummVM API documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
pal_transforms.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef ULTIMA8_GFX_PAL_TRANSFORMS_H
23 #define ULTIMA8_GFX_PAL_TRANSFORMS_H
24 
25 namespace Ultima {
26 namespace Ultima8 {
27 
28 enum PalTransforms {
29  // Normal untransformed palette
30  Transform_None = 0,
31 
32  // O[i] = I[r]*0.375 + I[g]*0.5 + I[b]*0.125;
33  Transform_Greyscale = 1,
34 
35  // O[r] = 0;
36  Transform_NoRed = 2,
37 
38  // O[i] = (I[i] + Grey)*0.25 + 0.1875;
39  Transform_RainStorm = 3,
40 
41  // O[r] = (I[r] + Grey)*0.5 + 0.1875;
42  // O[g] = I[g]*0.5 + Grey*0.25;
43  // O[b] = I[b]*0.5;
44  Transform_FireStorm = 4,
45 
46  // O[i] = I[i]*2 -Grey;
47  Transform_Saturate = 5,
48 
49  // O[g] = I[r]; O[b] = I[g]; O[r] = I[b];
50  Transform_GBR = 6,
51 
52  // O[b] = I[r]; O[r] = I[g]; O[g] = I[b];
53  Transform_BRG = 7,
54 
55  // Any value beyond this is invalid in savegames.
56  Transform_Invalid = 8
57 };
58 
59 } // End of namespace Ultima8
60 } // End of namespace Ultima
61 
62 #endif
Definition: detection.h:27