annotate PaletteManager.h @ 128:32805a956f49

4.11.12
author Ritor1
date Sun, 04 Nov 2012 17:03:51 +0600
parents 6305c1cd9f6e
children 7b12505a23c0
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;
128
32805a956f49 4.11.12
Ritor1
parents: 99
diff changeset
34 unsigned __int8 field_267AD0;
32805a956f49 4.11.12
Ritor1
parents: 99
diff changeset
35 unsigned __int8 field_267AD1;
32805a956f49 4.11.12
Ritor1
parents: 99
diff changeset
36 unsigned __int8 field_267AD2;
32805a956f49 4.11.12
Ritor1
parents: 99
diff changeset
37 unsigned char field_267AD3;
32805a956f49 4.11.12
Ritor1
parents: 99
diff changeset
38 unsigned char field_267AD4;
32805a956f49 4.11.12
Ritor1
parents: 99
diff changeset
39 unsigned char field_267AD5;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
40 char field_267AD6;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
41 char field_267AD7;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
42 unsigned int uNumTargetRBits;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
43 unsigned int uNumTargetGBits;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
44 unsigned int uNumTargetBBits;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
45 unsigned int uTargetRMask;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
46 unsigned int uTargetGMask;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
47 unsigned int uTargetBMask;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
48 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
49 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
50
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
51
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
52
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
53 extern PaletteManager *pPaletteManager;