annotate PaletteManager.h @ 676:ecfb1b3c9a39

BLV: when standing right on the portal (orange wall) everything looks fine
author Nomad
date Fri, 15 Mar 2013 04:13:24 +0200
parents 9c0607679772
children 1d05543f522d
rev   line source
0
Ritor1
parents:
diff changeset
1 #pragma once
Ritor1
parents:
diff changeset
2
Ritor1
parents:
diff changeset
3
Ritor1
parents:
diff changeset
4 /* 148 */
Ritor1
parents:
diff changeset
5 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
6 struct PaletteManager
Ritor1
parents:
diff changeset
7 {
Ritor1
parents:
diff changeset
8 PaletteManager();
Ritor1
parents:
diff changeset
9
Ritor1
parents:
diff changeset
10 int ResetNonTestLocked();
Ritor1
parents:
diff changeset
11 int CalcPalettes_LUT(int a2);
Ritor1
parents:
diff changeset
12 int ResetNonLocked();
Ritor1
parents:
diff changeset
13 int LoadPalette(unsigned int uPaletteID);
Ritor1
parents:
diff changeset
14 int MakePaletteLUT(int a2, char *entries);
Ritor1
parents:
diff changeset
15 void RecalculateAll();
Ritor1
parents:
diff changeset
16 int LockAll();
Ritor1
parents:
diff changeset
17 int LockTestAll();
Ritor1
parents:
diff changeset
18 void SetColorChannelInfo(int uNumRBits, int uNumGBits, int uNumBBits);
Ritor1
parents:
diff changeset
19
Ritor1
parents:
diff changeset
20 static unsigned __int16 *Get(int a1);
Ritor1
parents:
diff changeset
21 static unsigned __int16 *Get_Mist_or_Red_LUT(int paletteIdx, int a2, char a3);
Ritor1
parents:
diff changeset
22 static unsigned __int16 *Get_Dark_or_Red_LUT(int paletteIdx, int a2, char a3);
Ritor1
parents:
diff changeset
23 static unsigned __int16 *_47C30E_get_palette(int a1, char a2);
Ritor1
parents:
diff changeset
24 static unsigned __int16 *_47C33F_get_palette(int a1, char a2);
Ritor1
parents:
diff changeset
25
Ritor1
parents:
diff changeset
26 char pBaseColors[50][256][3];
Ritor1
parents:
diff changeset
27 unsigned __int16 pPalette1[50][32][256];
Ritor1
parents:
diff changeset
28 unsigned __int16 field_D1600[50][32][256];
Ritor1
parents:
diff changeset
29 unsigned __int16 field_199600_palettes[50][32][256];
Ritor1
parents:
diff changeset
30 unsigned __int16 field_261600[50][256];
Ritor1
parents:
diff changeset
31 int pPaletteIDs[50];
Ritor1
parents:
diff changeset
32 int _num_locked;
Ritor1
parents:
diff changeset
33 int _pal_lock_test;
Ritor1
parents:
diff changeset
34 unsigned __int8 pPalette_mistColor[3];
Ritor1
parents:
diff changeset
35 unsigned char pPalette_tintColor[3];
Ritor1
parents:
diff changeset
36 char field_267AD6;
Ritor1
parents:
diff changeset
37 char field_267AD7;
Ritor1
parents:
diff changeset
38 unsigned int uNumTargetRBits;
Ritor1
parents:
diff changeset
39 unsigned int uNumTargetGBits;
Ritor1
parents:
diff changeset
40 unsigned int uNumTargetBBits;
Ritor1
parents:
diff changeset
41 unsigned int uTargetRMask;
Ritor1
parents:
diff changeset
42 unsigned int uTargetGMask;
Ritor1
parents:
diff changeset
43 unsigned int uTargetBMask;
Ritor1
parents:
diff changeset
44 };
Ritor1
parents:
diff changeset
45 #pragma pack(pop)
Ritor1
parents:
diff changeset
46
Ritor1
parents:
diff changeset
47
Ritor1
parents:
diff changeset
48
Ritor1
parents:
diff changeset
49 extern PaletteManager *pPaletteManager;