[saco] Implement/match RpWorldAddClump(...)

This commit is contained in:
RD42 2024-08-04 22:31:36 +08:00
parent c3bedd9458
commit 5082033f0c
2 changed files with 14 additions and 0 deletions

View File

@ -195,6 +195,19 @@ void RpClumpRender(RpClump *clump)
_asm pop edx
}
void RpWorldAddClump(RpClump *clump)
{
DWORD dwWorld = *(DWORD*)0xC17038;
if (!dwWorld) return;
_asm push clump
_asm push dwWorld
_asm mov edx, 0x751300
_asm call edx
_asm pop edx
_asm pop edx
}
void RwCameraSetClipPlane(RwCamera *camera, float farClip, float nearClip)
{
DWORD dwRwCameraSetFarClipPlane;

View File

@ -27,6 +27,7 @@ void RwCameraEndUpdate(RwCamera *camera);
void RwObjectHasFrameSetFrame(RwCamera *camera, RwFrame *frame);
void SetCameraFrameAndZBuffer(RwCamera *camera, RwRaster *frameBuffer, RwRaster *zBuffer);
void RpClumpRender(RpClump *clump);
void RpWorldAddClump(RpClump *clump);
void RwCameraSetClipPlane(RwCamera *camera, float farClip, float nearClip);
void RwCameraSetViewWindow(RwCamera *camera, VECTOR2D *viewWindow);
RpLight* RpLightCreate(int type);