annotate PaletteManager.h @ 117:a64b244da76c

some things lod
author Nomad
date Tue, 13 Nov 2012 17:29:38 +0200
parents 6305c1cd9f6e
children 32805a956f49
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;
98
f76e4ea4a224 Outdoor::Load
Nomad
parents: 90
diff changeset
34 unsigned __int8 pPalette_mistColor[3];
f76e4ea4a224 Outdoor::Load
Nomad
parents: 90
diff changeset
35 unsigned char pPalette_tintColor[3];
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;