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

This commit is contained in:
RD42 2024-08-04 22:29:16 +08:00
parent 919199284d
commit c7a665d66b
2 changed files with 11 additions and 0 deletions

View File

@ -142,6 +142,16 @@ void RwCameraClear(RwCamera *camera, RwRGBA *color, int clearMode)
_asm pop edx
}
void RwCameraBeginUpdate(RwCamera *camera)
{
DWORD dwFunc = (iGtaVersion != GTASA_VERSION_USA10) ? 0x7EE1D0 : 0x7EE190;
_asm push camera
_asm mov edx, dwFunc
_asm call edx
_asm pop edx
}
void RwObjectHasFrameSetFrame(RwCamera *camera, RwFrame *frame)
{
DWORD dwFunc = (iGtaVersion != GTASA_VERSION_USA10) ? 0x804F30 : 0x804EF0l;

View File

@ -21,6 +21,7 @@ void RwRasterDestroy(RwRaster *raster);
void CShadowCamera_Create(int iRasterSize);
void RpWorldAddCamera(RwCamera *camera);
void RwCameraClear(RwCamera *camera, RwRGBA *color, int clearMode);
void RwCameraBeginUpdate(RwCamera *camera);
void RwObjectHasFrameSetFrame(RwCamera *camera, RwFrame *frame);
void SetCameraFrameAndZBuffer(RwCamera *camera, RwRaster *frameBuffer, RwRaster *zBuffer);
void RwCameraSetClipPlane(RwCamera *camera, float farClip, float nearClip);