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