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

This commit is contained in:
RD42 committed 2024-07-30 23:06:46 +08:00
1 parent 5a0021ada7
commit a378f20823
2 files changed
+11

No files matched your search

+10
View File
@@ -40,6 +40,16 @@ RwTexture* RwTextureCreate(RwRaster *raster)
return pTexture;
}
void RwTextureDestroy(RwTexture *texture)
{
DWORD dwFunc = (iGtaVersion != GTASA_VERSION_USA10) ? 0x7F3860 : 0x7F3820;
_asm push texture
_asm mov edx, dwFunc
_asm call edx
_asm pop edx
}
RwFrame* RwFrameCreate()
{
RwFrame* pFrame = NULL;
+1
View File
@@ -10,6 +10,7 @@ struct RwRGBAReal { float r, g, b, a; };
RwRaster* RwRasterCreate(int width, int height, int depth, int flags);
RwTexture* RwTextureCreate(RwRaster *raster);
void RwTextureDestroy(RwTexture *texture);
RwFrame* RwFrameCreate();
RwCamera* RwCameraCreate();
void RpWorldAddCamera(RwCamera *camera);