mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-11 09:48:13 +08:00
[saco] Implement/match RwTextureDestroy(...)
This commit is contained in:
1 parent
5a0021ada7
commit
a378f20823
2 files changed
+11
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user