Skip to content

Commit 2f9e1fc

Browse files
committed
More…
Signed-off-by: Isaac Marovitz <isaacryu@icloud.com>
1 parent a257463 commit 2f9e1fc

18 files changed

+105
-19
lines changed

MarathonRecomp/api/Marathon.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@
259259
#include "Sonicteam/sonicXmaPlayer.h"
260260
#include "boost/smart_ptr/make_shared_object.h"
261261
#include "boost/smart_ptr/shared_ptr.h"
262+
#include "d3dxb.h"
262263
#include "hk330/hkArray.h"
263264
#include "hk330/hkReferencedObject.h"
264265
#include "hk330/hkpBroadPhaseHandle.h"

MarathonRecomp/api/Sonicteam/RenderAction/SetCSMTextures.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@ namespace Sonicteam::RenderAction
88
class SetCSMTextures : public MyRenderProcess
99
{
1010
public:
11-
MARATHON_INSERT_PADDING(0xC);
11+
bool m_Flag;
12+
xpointer<void> m_pCSMTexture;
13+
MARATHON_INSERT_PADDING(0x4);
1214
};
1315

1416
MARATHON_ASSERT_SIZEOF(SetCSMTextures, 0x44);
17+
MARATHON_ASSERT_OFFSETOF(SetCSMTextures, m_Flag, 0x38);
18+
MARATHON_ASSERT_OFFSETOF(SetCSMTextures, m_pCSMTexture, 0x3C);
1519
}

MarathonRecomp/api/Sonicteam/RenderAction/SetConstantShader.h

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,26 @@ namespace Sonicteam::RenderAction
88
class SetConstantShader : public MyRenderProcess
99
{
1010
public:
11-
MARATHON_INSERT_PADDING(0x8);
11+
enum PassIndex
12+
{
13+
Main,
14+
Transparent,
15+
Sky,
16+
Shadowmap,
17+
Psi,
18+
Oc,
19+
Glare,
20+
AfterPp,
21+
Radermap,
22+
User0,
23+
User1
24+
};
25+
26+
be<PassIndex> m_PassIndex;
27+
xpointer<void> m_pShader;
1228
};
1329

1430
MARATHON_ASSERT_SIZEOF(SetConstantShader, 0x40);
31+
MARATHON_ASSERT_OFFSETOF(SetConstantShader, m_PassIndex, 0x38);
32+
MARATHON_ASSERT_OFFSETOF(SetConstantShader, m_pShader, 0x3C);
1533
}

MarathonRecomp/api/Sonicteam/RenderAction/SetCullMode.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,16 @@ namespace Sonicteam::RenderAction
88
class SetCullMode : public MyRenderProcess
99
{
1010
public:
11-
MARATHON_INSERT_PADDING(0x4);
11+
enum CullMode
12+
{
13+
None,
14+
CW,
15+
CCW
16+
};
17+
18+
be<CullMode> m_CullMode;
1219
};
1320

1421
MARATHON_ASSERT_SIZEOF(SetCullMode, 0x3C);
22+
MARATHON_ASSERT_OFFSETOF(SetCullMode, m_CullMode, 0x38);
1523
}

MarathonRecomp/api/Sonicteam/RenderAction/SetCurrentScreen.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ namespace Sonicteam::RenderAction
88
class SetCurrentScreen : public MyRenderProcess
99
{
1010
public:
11-
MARATHON_INSERT_PADDING(0x4);
11+
be<uint32_t> m_ScreenIndex;
1212
};
1313

1414
MARATHON_ASSERT_SIZEOF(SetCurrentScreen, 0x3C);
15+
MARATHON_ASSERT_OFFSETOF(SetCurrentScreen, m_ScreenIndex, 0x38);
1516
}

MarathonRecomp/api/Sonicteam/RenderAction/SetDepthTextures.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ namespace Sonicteam::RenderAction
88
class SetDepthTextures : public MyRenderProcess
99
{
1010
public:
11-
MARATHON_INSERT_PADDING(0x8);
11+
bool m_Flag;
12+
xpointer<void> m_pDepthTexture;
1213
};
1314

1415
MARATHON_ASSERT_SIZEOF(SetDepthTextures, 0x40);
16+
MARATHON_ASSERT_OFFSETOF(SetDepthTextures, m_Flag, 0x38);
17+
MARATHON_ASSERT_OFFSETOF(SetDepthTextures, m_pDepthTexture, 0x3C);
1518
}

MarathonRecomp/api/Sonicteam/RenderAction/SetFovY.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ namespace Sonicteam::RenderAction
99
{
1010
public:
1111
be<uint32_t> m_CameraIndex;
12-
MARATHON_INSERT_PADDING(0x4);
12+
be<float> m_FovY;
1313
};
1414

1515
MARATHON_ASSERT_SIZEOF(SetFovY, 0x40);
1616
MARATHON_ASSERT_OFFSETOF(SetFovY, m_CameraIndex, 0x38);
17+
MARATHON_ASSERT_OFFSETOF(SetFovY, m_FovY, 0x3C);
1718
}

MarathonRecomp/api/Sonicteam/RenderAction/SetFrameBufferObject.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@ namespace Sonicteam::RenderAction
99
{
1010
public:
1111
xpointer<void> m_pFrameBufferObject;
12-
MARATHON_INSERT_PADDING(0x8);
12+
MARATHON_INSERT_PADDING(0x4);
13+
bool m_Once;
14+
bool m_PostProcess;
1315
};
1416

1517
MARATHON_ASSERT_SIZEOF(SetFrameBufferObject, 0x44);
16-
MARATHON_ASSERT_OFFSETOF(SetFrameBufferObject, m_pParentProcess, 0x30);
18+
MARATHON_ASSERT_OFFSETOF(SetFrameBufferObject, m_pFrameBufferObject, 0x38);
19+
MARATHON_ASSERT_OFFSETOF(SetFrameBufferObject, m_Once, 0x40);
20+
MARATHON_ASSERT_OFFSETOF(SetFrameBufferObject, m_PostProcess, 0x41);
1721
}

MarathonRecomp/api/Sonicteam/RenderAction/SetReflectionTextures.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,14 @@
55

66
namespace Sonicteam::RenderAction
77
{
8-
class SetReflectionTexture : public MyRenderProcess
8+
class SetReflectionTextures : public MyRenderProcess
99
{
1010
public:
11-
MARATHON_INSERT_PADDING(0x8);
11+
bool m_Flag;
12+
xpointer<void> m_pReflectionTexture;
1213
};
1314

14-
MARATHON_ASSERT_SIZEOF(SetReflectionTexture, 0x40);
15+
MARATHON_ASSERT_SIZEOF(SetReflectionTextures, 0x40);
16+
MARATHON_ASSERT_OFFSETOF(SetReflectionTextures, m_Flag, 0x38);
17+
MARATHON_ASSERT_OFFSETOF(SetReflectionTextures, m_pReflectionTexture, 0x3C);
1518
}

MarathonRecomp/api/Sonicteam/RenderAction/SetScissorRect.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,15 @@ namespace Sonicteam::RenderAction
88
class SetScissorRect : public MyRenderProcess
99
{
1010
public:
11-
MARATHON_INSERT_PADDING(0x10);
11+
be<float> m_X;
12+
be<float> m_Y;
13+
be<float> m_Width;
14+
be<float> m_Height;
1215
};
1316

1417
MARATHON_ASSERT_SIZEOF(SetScissorRect, 0x48);
18+
MARATHON_ASSERT_OFFSETOF(SetScissorRect, m_X, 0x38);
19+
MARATHON_ASSERT_OFFSETOF(SetScissorRect, m_Y, 0x3C);
20+
MARATHON_ASSERT_OFFSETOF(SetScissorRect, m_Width, 0x40);
21+
MARATHON_ASSERT_OFFSETOF(SetScissorRect, m_Height, 0x44);
1522
}

0 commit comments

Comments
 (0)