Mercurial > might-and-magic-trilogy
comparison PaletteManager.h @ 0:8b8875f5b359
Initial commit
author | Nomad |
---|---|
date | Fri, 05 Oct 2012 16:07:14 +0200 |
parents | |
children | 8c6308bb19b3 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:8b8875f5b359 |
---|---|
1 #pragma once | |
2 | |
3 | |
4 /* 148 */ | |
5 #pragma pack(push, 1) | |
6 struct PaletteManager | |
7 { | |
8 PaletteManager(); | |
9 | |
10 int ResetNonTestLocked(); | |
11 int CalcPalettes_LUT(int a2); | |
12 int ResetNonLocked(); | |
13 int LoadPalette(unsigned int uPaletteID); | |
14 int MakePaletteLUT(int a2, char *entries); | |
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 | |
26 char pBaseColors[50][256][3]; | |
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 field_267AD0; | |
35 unsigned __int8 field_267AD1; | |
36 unsigned __int8 field_267AD2; | |
37 char field_267AD3; | |
38 char field_267AD4; | |
39 char field_267AD5; | |
40 char field_267AD6; | |
41 char field_267AD7; | |
42 unsigned int uNumTargetRBits; | |
43 unsigned int uNumTargetGBits; | |
44 unsigned int uNumTargetBBits; | |
45 unsigned int uTargetRMask; | |
46 unsigned int uTargetGMask; | |
47 unsigned int uTargetBMask; | |
48 }; | |
49 #pragma pack(pop) | |
50 | |
51 | |
52 | |
53 extern PaletteManager *pPaletteManager; |