Mercurial > mm7
annotate PaletteManager.h @ 2439:daf7807d0a86
Merge
author | a.parshin |
---|---|
date | Thu, 24 Jul 2014 00:32:18 +0300 |
parents | 5d263539bbec |
children |
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 | |
2343 | 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); | |
0 | 53 extern PaletteManager *pPaletteManager; |