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

This commit is contained in:
RD42 2024-07-30 23:07:18 +08:00
parent a378f20823
commit 87eda98351
2 changed files with 11 additions and 0 deletions

View File

@ -62,6 +62,16 @@ RwFrame* RwFrameCreate()
return pFrame;
}
void RwFrameDestroy(RwFrame *frame)
{
DWORD dwFunc = (iGtaVersion != GTASA_VERSION_USA10) ? 0x7F05E0 : 0x7F05A0;
_asm push frame
_asm mov edx, dwFunc
_asm call edx
_asm pop edx
}
RwCamera* RwCameraCreate()
{
RwCamera* pCamera = NULL;

View File

@ -12,6 +12,7 @@ RwRaster* RwRasterCreate(int width, int height, int depth, int flags);
RwTexture* RwTextureCreate(RwRaster *raster);
void RwTextureDestroy(RwTexture *texture);
RwFrame* RwFrameCreate();
void RwFrameDestroy(RwFrame *frame);
RwCamera* RwCameraCreate();
void RpWorldAddCamera(RwCamera *camera);
void RwObjectHasFrameSetFrame(RwCamera *camera, RwFrame *frame);