annotate PaletteManager.h @ 2371:43f29cb2e6ed

.
author Ritor1
date Sun, 01 Jun 2014 15:17:20 +0600
parents 5d263539bbec
children
rev   line source
0
Ritor1
parents:
diff changeset
1 #pragma once
Ritor1
parents:
diff changeset
2
Ritor1
parents:
diff changeset
3
Ritor1
parents:
diff changeset
4 /* 148 */
Ritor1
parents:
diff changeset
5 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
6 struct PaletteManager
Ritor1
parents:
diff changeset
7 {
Ritor1
parents:
diff changeset
8 PaletteManager();
762
cf2fbac6edc9 Misc cleaning
Nomad
parents: 700
diff changeset
9
cf2fbac6edc9 Misc cleaning
Nomad
parents: 700
diff changeset
10 void SetMistColor(unsigned char r, unsigned char g, unsigned char b);
0
Ritor1
parents:
diff changeset
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
Ritor1
parents:
diff changeset
13 int ResetNonLocked();
Ritor1
parents:
diff changeset
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
Ritor1
parents:
diff changeset
16 void RecalculateAll();
Ritor1
parents:
diff changeset
17 int LockAll();
Ritor1
parents:
diff changeset
18 int LockTestAll();
Ritor1
parents:
diff changeset
19 void SetColorChannelInfo(int uNumRBits, int uNumGBits, int uNumBBits);
Ritor1
parents:
diff changeset
20
Ritor1
parents:
diff changeset
21 static unsigned __int16 *Get(int a1);
Ritor1
parents:
diff changeset
22 static unsigned __int16 *Get_Mist_or_Red_LUT(int paletteIdx, int a2, char a3);
Ritor1
parents:
diff changeset
23 static unsigned __int16 *Get_Dark_or_Red_LUT(int paletteIdx, int a2, char a3);
Ritor1
parents:
diff changeset
24 static unsigned __int16 *_47C30E_get_palette(int a1, char a2);
Ritor1
parents:
diff changeset
25 static unsigned __int16 *_47C33F_get_palette(int a1, char a2);
Ritor1
parents:
diff changeset
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
Ritor1
parents:
diff changeset
28 unsigned __int16 pPalette1[50][32][256];
Ritor1
parents:
diff changeset
29 unsigned __int16 field_D1600[50][32][256];
Ritor1
parents:
diff changeset
30 unsigned __int16 field_199600_palettes[50][32][256];
Ritor1
parents:
diff changeset
31 unsigned __int16 field_261600[50][256];
Ritor1
parents:
diff changeset
32 int pPaletteIDs[50];
Ritor1
parents:
diff changeset
33 int _num_locked;
Ritor1
parents:
diff changeset
34 int _pal_lock_test;
Ritor1
parents:
diff changeset
35 unsigned __int8 pPalette_mistColor[3];
Ritor1
parents:
diff changeset
36 unsigned char pPalette_tintColor[3];
Ritor1
parents:
diff changeset
37 char field_267AD6;
Ritor1
parents:
diff changeset
38 char field_267AD7;
Ritor1
parents:
diff changeset
39 unsigned int uNumTargetRBits;
Ritor1
parents:
diff changeset
40 unsigned int uNumTargetGBits;
Ritor1
parents:
diff changeset
41 unsigned int uNumTargetBBits;
Ritor1
parents:
diff changeset
42 unsigned int uTargetRMask;
Ritor1
parents:
diff changeset
43 unsigned int uTargetGMask;
Ritor1
parents:
diff changeset
44 unsigned int uTargetBMask;
Ritor1
parents:
diff changeset
45 };
Ritor1
parents:
diff changeset
46 #pragma pack(pop)
Ritor1
parents:
diff changeset
47
Ritor1
parents:
diff changeset
48
Ritor1
parents:
diff changeset
49
2343
5d263539bbec Moving functions from unsorted_subs.h pt5
Grumpy7
parents: 762
diff changeset
50 bool __fastcall HSV2RGB(float *a1, float *a2, float *a3, float a4, float a5, float a6);
5d263539bbec Moving functions from unsorted_subs.h pt5
Grumpy7
parents: 762
diff changeset
51 void __fastcall RGB2HSV(float *a1, float *a2, float a3, float a4, float a5, float *a6);
5d263539bbec Moving functions from unsorted_subs.h pt5
Grumpy7
parents: 762
diff changeset
52 signed int ReplaceHSV(unsigned int uColor, float a2, float gamma, float a4);
0
Ritor1
parents:
diff changeset
53 extern PaletteManager *pPaletteManager;