-
Notifications
You must be signed in to change notification settings - Fork 2
/
dcmodel.cpp
78 lines (65 loc) · 1.29 KB
/
dcmodel.cpp
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#include "dcmodel.h"
#include <cmath>
EXPORT float gPreComputedColorRelated = -1.0f;
EXPORT u8 gConvertedColors[256];
// @SMALLTODO
void DCClearSkater(void)
{
printf("DCClearSkater(void)");
}
// @SMALLTODO
DCKeyFrame::~DCKeyFrame(void)
{
printf("DCKeyFrame::~DCKeyFrame(void)");
}
// @SMALLTODO
DCMaterial::~DCMaterial(void)
{
printf("DCMaterial::~DCMaterial(void)");
}
// @MEDIUMTODO
void DCModel_CreateFromSModel(DCModelData *,SModel *,i32,i32 *,bool,i32)
{
printf("DCModel_CreateFromSModel(DCModelData *,SModel *,i32,i32 *,bool,i32)");
}
// @SMALLTODO
DCObject::~DCObject(void)
{
printf("DCObject::~DCObject(void)");
}
// @SMALLTODO
DCObjectList::~DCObjectList(void)
{
printf("DCObjectList::~DCObjectList(void)");
}
// @SMALLTODO
void DCSkaterModel::ClearSkaterModel(void)
{
printf("DCSkaterModel::ClearSkaterModel(void)");
}
// @SMALLTODO
DCSkaterModel::~DCSkaterModel(void)
{
printf("DCSkaterModel::~DCSkaterModel(void)");
}
// @SMALLTODO
DCStrip::~DCStrip(void)
{
printf("DCStrip::~DCStrip(void)");
}
// @Ok
// @Matching
void PreComputeConvertedColors(float a1)
{
for (i32 i = 0;
i < 256;
i++)
{
float v4 = (float)i / 255.0f;
float v5 = pow(v4, a1);
if (v5 > 1.0)
v5 = 1.0;
gConvertedColors[i] = (v5 * 255.0f);
}
gPreComputedColorRelated = a1;
}