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

This commit is contained in:
RD42 2024-08-04 22:37:18 +08:00
parent 896515e38f
commit 1f1a6046ab
2 changed files with 16 additions and 0 deletions

View File

@ -365,6 +365,21 @@ void CVisibilityPlugins_SetRenderWareCamera(RwCamera *camera)
_asm pop edx
}
RpClump * RpClumpClone(RpClump *clump)
{
RpClump *pResult = NULL;
if(!clump) return NULL;
_asm push clump
_asm mov edx, 0x749F70
_asm call edx
_asm pop edx
_asm mov pResult, eax
return pResult;
}
void RwCameraSetProjection(RwCamera *camera, int projection)
{
DWORD dwFunc = (iGtaVersion != GTASA_VERSION_USA10) ? 0x7EE3E0 : 0x7EE3A0;

View File

@ -39,6 +39,7 @@ void RpLightSetRadius(RpLight *light, float radius);
void RpWorldAddLight(RpLight *light);
void RpWorldRemoveLight(RpLight *light);
void CVisibilityPlugins_SetRenderWareCamera(RwCamera *camera);
RpClump * RpClumpClone(RpClump *clump);
void RwCameraSetProjection(RwCamera *camera, int projection);
void RwFrameTranslate(RwFrame *frame, VECTOR *v, int combine);
void RwFrameRotate(RwFrame* frame, int axis, float angle);