Skip to content

Commit ed0ea04

Browse files
xModelBucket: Finish as equivalent (#679)
Ported from Seil's PC port
1 parent b12f346 commit ed0ea04

File tree

6 files changed

+581
-46
lines changed

6 files changed

+581
-46
lines changed

configure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ def MatchingFor(*versions):
585585
Object(NonMatching, "SB/Game/zNPCSndTable.cpp"),
586586
Object(Matching, "SB/Game/zNPCSndLists.cpp"),
587587
Object(NonMatching, "SB/Game/zNPCTypeDuplotron.cpp"),
588-
Object(NonMatching, "SB/Core/x/xModelBucket.cpp"),
588+
Object(Equivalent, "SB/Core/x/xModelBucket.cpp"),
589589
Object(NonMatching, "SB/Game/zShrapnel.cpp"),
590590
Object(Matching, "SB/Game/zNPCGoalDuplotron.cpp", extra_cflags=["-sym on"]),
591591
Object(NonMatching, "SB/Game/zNPCSpawner.cpp"),
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#ifndef DLRENDST_H
2+
#define DLRENDST_H
3+
4+
#include "rwsdk/rwcore.h"
5+
6+
7+
#ifdef __cplusplus
8+
extern "C" {
9+
#endif
10+
11+
extern void _rwDlRenderStateSetZCompLoc(RwInt32 zBeforeTex);
12+
extern void RwGameCubeSetAlphaCompare(RwInt32 comp0, RwUInt8 ref0, RwInt32 op, RwInt32 comp1, RwUInt8 ref1);
13+
14+
15+
#ifdef __cplusplus
16+
}
17+
#endif
18+
19+
#endif

src/SB/Core/x/xLightKit.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ struct xLightKit
2323
xLightKitLight* lightList;
2424
};
2525

26+
extern S32 iModelHack_DisablePrelight;
27+
extern xLightKit* gLastLightKit;
28+
2629
xLightKit* xLightKit_Prepare(void* data);
2730
void xLightKit_Enable(xLightKit* lkit, RpWorld* world);
2831
xLightKit* xLightKit_GetCurrent(RpWorld* world);

src/SB/Core/x/xModel.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ extern xModelPipeInfo* xModelPipeData[16];
128128
extern S32 xModelLookupCount;
129129
extern xModelPipeLookup* xModelLookupList;
130130
extern S32 xModelInstStaticAlloc;
131+
extern S32 xModelBucketEnabled;
131132

132133
U32 xModelGetPipeFlags(RpAtomic* model);
133134
void xModelInit();

0 commit comments

Comments
 (0)