Mercurial > mm7
annotate PaletteManager.h @ 754:5ba796adbf5e
Merge
author | Gloval |
---|---|
date | Sat, 23 Mar 2013 00:54:30 +0400 |
parents | 1d05543f522d |
children | cf2fbac6edc9 |
rev | line source |
---|---|
0 | 1 #pragma once |
2 | |
3 | |
4 /* 148 */ | |
5 #pragma pack(push, 1) | |
6 struct PaletteManager | |
7 { | |
8 PaletteManager(); | |
9 | |
10 int ResetNonTestLocked(); | |
700
1d05543f522d
Some occasional crashes in PaletteManager and sprite loading fixed.
Nomad
parents:
0
diff
changeset
|
11 void CalcPalettes_LUT(int a2); |
0 | 12 int ResetNonLocked(); |
13 int LoadPalette(unsigned int uPaletteID); | |
700
1d05543f522d
Some occasional crashes in PaletteManager and sprite loading fixed.
Nomad
parents:
0
diff
changeset
|
14 int MakeBasePaletteLut(int a2, char *entries); |
0 | 15 void RecalculateAll(); |
16 int LockAll(); | |
17 int LockTestAll(); | |
18 void SetColorChannelInfo(int uNumRBits, int uNumGBits, int uNumBBits); | |
19 | |
20 static unsigned __int16 *Get(int a1); | |
21 static unsigned __int16 *Get_Mist_or_Red_LUT(int paletteIdx, int a2, char a3); | |
22 static unsigned __int16 *Get_Dark_or_Red_LUT(int paletteIdx, int a2, char a3); | |
23 static unsigned __int16 *_47C30E_get_palette(int a1, char a2); | |
24 static unsigned __int16 *_47C33F_get_palette(int a1, char a2); | |
25 | |
700
1d05543f522d
Some occasional crashes in PaletteManager and sprite loading fixed.
Nomad
parents:
0
diff
changeset
|
26 unsigned __int8 pBaseColors[50][256][3]; |
0 | 27 unsigned __int16 pPalette1[50][32][256]; |
28 unsigned __int16 field_D1600[50][32][256]; | |
29 unsigned __int16 field_199600_palettes[50][32][256]; | |
30 unsigned __int16 field_261600[50][256]; | |
31 int pPaletteIDs[50]; | |
32 int _num_locked; | |
33 int _pal_lock_test; | |
34 unsigned __int8 pPalette_mistColor[3]; | |
35 unsigned char pPalette_tintColor[3]; | |
36 char field_267AD6; | |
37 char field_267AD7; | |
38 unsigned int uNumTargetRBits; | |
39 unsigned int uNumTargetGBits; | |
40 unsigned int uNumTargetBBits; | |
41 unsigned int uTargetRMask; | |
42 unsigned int uTargetGMask; | |
43 unsigned int uTargetBMask; | |
44 }; | |
45 #pragma pack(pop) | |
46 | |
47 | |
48 | |
49 extern PaletteManager *pPaletteManager; |