annotate PaletteManager.h @ 106:1e18102bd4d0

5.11.12
author Ritor1
date Mon, 05 Nov 2012 09:15:53 +0600
parents 8c6308bb19b3
children 51a5b0dc3f30 f76e4ea4a224
rev   line source
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1 #pragma once
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4 /* 148 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
6 struct PaletteManager
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
7 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
8 PaletteManager();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
9
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
10 int ResetNonTestLocked();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
11 int CalcPalettes_LUT(int a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
12 int ResetNonLocked();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
13 int LoadPalette(unsigned int uPaletteID);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
14 int MakePaletteLUT(int a2, char *entries);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
15 void RecalculateAll();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
16 int LockAll();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
17 int LockTestAll();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
18 void SetColorChannelInfo(int uNumRBits, int uNumGBits, int uNumBBits);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
19
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
20 static unsigned __int16 *Get(int a1);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
21 static unsigned __int16 *Get_Mist_or_Red_LUT(int paletteIdx, int a2, char a3);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
22 static unsigned __int16 *Get_Dark_or_Red_LUT(int paletteIdx, int a2, char a3);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
23 static unsigned __int16 *_47C30E_get_palette(int a1, char a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
24 static unsigned __int16 *_47C33F_get_palette(int a1, char a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
25
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
26 char pBaseColors[50][256][3];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
27 unsigned __int16 pPalette1[50][32][256];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
28 unsigned __int16 field_D1600[50][32][256];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
29 unsigned __int16 field_199600_palettes[50][32][256];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
30 unsigned __int16 field_261600[50][256];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
31 int pPaletteIDs[50];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
32 int _num_locked;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
33 int _pal_lock_test;
90
8c6308bb19b3 2.11.12
Ritor1
parents: 0
diff changeset
34 unsigned __int8 pPalette_mistColor[2];
8c6308bb19b3 2.11.12
Ritor1
parents: 0
diff changeset
35 char pPalette_tintColor[2];
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
36 char field_267AD6;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
37 char field_267AD7;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
38 unsigned int uNumTargetRBits;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
39 unsigned int uNumTargetGBits;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
40 unsigned int uNumTargetBBits;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
41 unsigned int uTargetRMask;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
42 unsigned int uTargetGMask;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
43 unsigned int uTargetBMask;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
44 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
45 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
46
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
47
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
48
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
49 extern PaletteManager *pPaletteManager;