forked from Phobos-developers/YRpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAlphaLightingRemapClass.h
More file actions
35 lines (29 loc) · 898 Bytes
/
AlphaLightingRemapClass.h
File metadata and controls
35 lines (29 loc) · 898 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#pragma once
#include <YRPP.h>
#include <Helpers/CompileTime.h>
class AlphaLightingRemapClass
{
public:
DEFINE_REFERENCE(DynamicVectorClass<AlphaLightingRemapClass*>, Array, 0x88A080)
// Notice:
// When a ConvertClass is constructed by the game, it will generate [IntensityCount] color
// tables from dark to bright. Each of them just changes the intensity of the source palette.
//
// If we have a point, whose value in ABuffer is A
static AlphaLightingRemapClass* __stdcall FindOrAllocate(int intensityCount)
{
JMP_STD(0x420140);
}
static void __stdcall Release(AlphaLightingRemapClass* pItem)
{
JMP_STD(0x420270);
}
// The game never directly called this function, it just call FindOrAllocate and this CTOR is inlined!
explicit AlphaLightingRemapClass(int intensityCount) noexcept
{
JMP_THIS(0x4202F0);
}
WORD Table[256][256];
int IntensityCount;
int RefCount;
};