Skip to content

Commit 2c74441

Browse files
authored
Merge branch 'master' into implement-cmb-model-part
2 parents baa370f + 7e4ffb5 commit 2c74441

41 files changed

Lines changed: 377 additions & 381 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

GolDP/include/amberhaze0x20.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class AmberHaze0x20 : public AmberHaze0x1c {
2323
// AmberHaze0x20::`vector deleting destructor'
2424

2525
private:
26-
DuskwindBananaRelic0x30* m_unk0x1c; // 0x1c
26+
DuskwindBananaRelic0x30* m_items; // 0x1c
2727
};
2828

2929
#endif // AMBERHAZE0X20_H

GolDP/include/amberlens0x344.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class AmberLens0x344 : public AmberLensBase0x120 {
4747
void FUN_10002860(D3DVIEWPORT2* p_viewport);
4848

4949
JadeOrbit0x220 m_unk0x120; // 0x120
50-
BronzeFalcon0xc8770* m_unk0x340; // 0x340
50+
BronzeFalcon0xc8770* m_renderer; // 0x340
5151
};
5252

5353
#endif // AMBERLENS0X344_H

GolDP/include/bronzefalcon0xc8770.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,8 @@ class BronzeFalcon0xc8770 : public WhiteFalcon0x140 {
232232
D3DMATERIAL m_materialParams; // 0x274
233233
LPDIRECT3DMATERIAL3 m_backgroundMaterial; // 0x2c4
234234
D3DMATERIALHANDLE m_backgroundMaterialHandle; // 0x2c8
235-
ColorRGBA m_unk0x2cc; // 0x2cc
236-
LegoU32 m_unk0x2d0; // 0x2d0
235+
ColorRGBA m_clearColor; // 0x2cc
236+
LegoU32 m_clearPixelValue; // 0x2d0
237237
DuskwindBananaRelic0x30 m_unk0x2d4; // 0x2d4
238238
SlatePeak0x58* m_unk0x304; // 0x304
239239
SlatePeak0x58* m_renderTargetInfo; // 0x308
@@ -254,7 +254,7 @@ class BronzeFalcon0xc8770 : public WhiteFalcon0x140 {
254254
D3DTLVERTEX m_unk0xc53a0[(0xc83a0 - 0xc53a0) / sizeof(D3DTLVERTEX)]; // 0xc53a0
255255
undefined4 m_unk0xc83a0; // 0xc83a0
256256
undefined4 m_unk0xc83a4; // 0xc83a4
257-
GoldDune0x38* m_unk0xc83a8; // 0xc83a8
257+
GoldDune0x38* m_currentTexture; // 0xc83a8
258258
undefined4 m_unk0xc83ac; // 0xc83ac
259259
undefined4 m_unk0xc83b0; // 0xc83b0
260260
Field0xc83b4 m_unk0xc83b4; // 0xc83b4

GolDP/include/purpledune0x7c.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class PurpleDune0x7c : public GoldDune0x38 {
4040
undefined4 FUN_100165c0(GolCommonDrawState* p_drawState, BronzeFalcon0xc8770& p_renderer);
4141
undefined4 FUN_100168c0(BronzeFalcon0xc8770& p_renderer);
4242

43-
LPDIRECT3DTEXTURE2 GetDirect3DTexture() const { return reinterpret_cast<LPDIRECT3DTEXTURE2>(m_unk0x4c); }
43+
LPDIRECT3DTEXTURE2 GetDirect3DTexture() const { return reinterpret_cast<LPDIRECT3DTEXTURE2>(m_d3dTexture); }
4444

4545
// SYNTHETIC: GOLDP 0x10004aa0
4646
// PurpleDune0x7c::`vector deleting destructor'
@@ -56,10 +56,10 @@ class PurpleDune0x7c : public GoldDune0x38 {
5656

5757
undefined4 m_unk0x38; // 0x38
5858
undefined4 m_unk0x3c; // 0x3c
59-
IPalette0x4* m_unk0x40; // 0x40
59+
IPalette0x4* m_palette; // 0x40
6060
MipmapLevel* m_mipmaps; // 0x44
6161
LPDIRECTDRAWSURFACE4 m_surface; // 0x48
62-
undefined4* m_unk0x4c; // 0x4c
62+
undefined4* m_d3dTexture; // 0x4c
6363
BronzeDuneBag0xc m_unk0x50; // 0x50
6464
GolSurfaceFormat m_textureFormat2; // 0x5c
6565
undefined4 m_unk0x74; // 0x74

GolDP/include/whitefalcon0x140.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,13 +227,13 @@ class WhiteFalcon0x140 {
227227
// SYNTHETIC: GOLDP 0x100288b0
228228
// WhiteFalcon0x140::`scalar deleting destructor'
229229

230-
undefined4 GetUnk0x04() { return m_unk0x04; }
230+
undefined4 GetFlags() { return m_flags; }
231231
AmberLens0x344* GetUnk0x0c() { return m_unk0x0c; }
232232

233233
protected:
234234
friend class GolCommonDrawState;
235235

236-
undefined4 m_unk0x04; // 0x04
236+
undefined4 m_flags; // 0x04
237237
undefined2 m_unk0x08; // 0x08
238238
undefined2 m_unk0x0a; // 0x0a
239239
AmberLens0x344* m_unk0x0c; // 0x0c

GolDP/src/amberhaze0x20.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// FUNCTION: GOLDP 0x10006680
77
AmberHaze0x20::AmberHaze0x20()
88
{
9-
m_unk0x1c = NULL;
9+
m_items = NULL;
1010
}
1111

1212
// FUNCTION: GOLDP 0x100066a0
@@ -18,8 +18,8 @@ AmberHaze0x20::~AmberHaze0x20()
1818
// FUNCTION: GOLDP 0x10006710
1919
void AmberHaze0x20::VTable0x14()
2020
{
21-
m_unk0x1c = new DuskwindBananaRelic0x30[m_numItems];
22-
if (m_unk0x1c == NULL) {
21+
m_items = new DuskwindBananaRelic0x30[m_numItems];
22+
if (m_items == NULL) {
2323
GOL_FATALERROR(c_golErrorOutOfMemory);
2424
}
2525
}
@@ -30,7 +30,7 @@ void AmberHaze0x20::VTable0x0c()
3030
LegoU32 i;
3131

3232
for (i = 0; i < m_numItems; i++) {
33-
m_unk0x1c[i].Destroy();
33+
m_items[i].Destroy();
3434
}
3535
}
3636

@@ -43,21 +43,21 @@ void AmberHaze0x20::VTable0x10()
4343
// FUNCTION: GOLDP 0x100067e0
4444
void AmberHaze0x20::Clear()
4545
{
46-
if (m_unk0x1c != NULL) {
47-
delete[] m_unk0x1c;
48-
m_unk0x1c = NULL;
46+
if (m_items != NULL) {
47+
delete[] m_items;
48+
m_items = NULL;
4949
}
5050
AmberHaze0x1c::Clear();
5151
}
5252

5353
// FUNCTION: GOLDP 0x10006800
5454
DuskwindBananaRelic0x24* AmberHaze0x20::VTable0x28(LegoU32 p_index) const
5555
{
56-
return &m_unk0x1c[p_index];
56+
return &m_items[p_index];
5757
}
5858

5959
// FUNCTION: GOLDP 0x10006820
6060
void AmberHaze0x20::VTable0x18(LegoU32 p_index)
6161
{
62-
m_unk0x1c[p_index].FUN_10006320(*m_renderer);
62+
m_items[p_index].FUN_10006320(*m_renderer);
6363
}

GolDP/src/amberlens0x344.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,21 @@ DECOMP_SIZE_ASSERT(AmberLens0x344, 0x344)
99
AmberLens0x344::AmberLens0x344()
1010
{
1111
m_unk0x04 = &m_unk0x120;
12-
m_unk0x340 = NULL;
12+
m_renderer = NULL;
1313
}
1414

1515
// FUNCTION: GOLDP 0x10001f00
1616
AmberLens0x344::~AmberLens0x344()
1717
{
18-
if (m_unk0x340) {
19-
m_unk0x340->VTable0x24();
18+
if (m_renderer) {
19+
m_renderer->VTable0x24();
2020
}
2121
}
2222

2323
// FUNCTION: GOLDP 0x10001f60
2424
void AmberLens0x344::FUN_10001f60(BronzeFalcon0xc8770* p_renderer)
2525
{
26-
m_unk0x340 = p_renderer;
26+
m_renderer = p_renderer;
2727
if (p_renderer != NULL) {
2828
const SlatePeak0x58* renderTargetInfo = p_renderer->GetRenderTargetInfo();
2929
if (m_unk0x11c == 0 || m_unk0x118 == 0) {
@@ -128,7 +128,7 @@ void AmberLens0x344::VTable0x20(undefined4, undefined4)
128128
// FUNCTION: GOLDP 0x10002860
129129
void AmberLens0x344::FUN_10002860(D3DVIEWPORT2* p_viewport)
130130
{
131-
const SlatePeak0x58* renderTargetInfo = m_unk0x340->GetRenderTargetInfo();
131+
const SlatePeak0x58* renderTargetInfo = m_renderer->GetRenderTargetInfo();
132132
p_viewport->dwX = 0;
133133
p_viewport->dwY = 0;
134134
p_viewport->dwWidth = renderTargetInfo->GetWidth();

0 commit comments

Comments
 (0)