2496
|
1 #pragma once
|
|
2
|
|
3
|
|
4 /* 148 */
|
|
5 #pragma pack(push, 1)
|
|
6 struct PaletteManager
|
|
7 {
|
|
8 PaletteManager();
|
|
9
|
|
10 void SetMistColor(unsigned char r, unsigned char g, unsigned char b);
|
|
11 int ResetNonTestLocked();
|
|
12 void CalcPalettes_LUT(int a2);
|
|
13 int ResetNonLocked();
|
|
14 int LoadPalette(unsigned int uPaletteID);
|
|
15 int MakeBasePaletteLut(int a2, char *entries);
|
|
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
|
|
27 unsigned __int8 pBaseColors[50][256][3];
|
|
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 bool __fastcall HSV2RGB(float *a1, float *a2, float *a3, float a4, float a5, float a6);
|
|
51 void __fastcall RGB2HSV(float *a1, float *a2, float a3, float a4, float a5, float *a6);
|
|
52 signed int ReplaceHSV(unsigned int uColor, float a2, float gamma, float a4);
|
|
53 extern PaletteManager *pPaletteManager; |