mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-11 09:48:13 +08:00
[saco] Implement/match RpClumpAddLight(...)
This commit is contained in:
1 parent
483c57ee33
commit
16ddecf959
2 files changed
+15
No files matched your search
@@ -289,6 +289,20 @@ RpLight* RpLightCreate(int _type)
|
||||
return pLight;
|
||||
}
|
||||
|
||||
void RpClumpAddLight(RpClump *clump, RpLight *light)
|
||||
{
|
||||
RpClump* pResult = NULL;
|
||||
DWORD dwFunc = (iGtaVersion != GTASA_VERSION_USA10) ? 0x74A540 : 0x74A4F0;
|
||||
|
||||
_asm push light
|
||||
_asm push clump
|
||||
_asm mov edx, dwFunc
|
||||
_asm call edx
|
||||
_asm pop edx
|
||||
_asm pop edx
|
||||
_asm mov pResult, eax
|
||||
}
|
||||
|
||||
void RpLightSetColor(RpLight *light, RwRGBAReal *color)
|
||||
{
|
||||
DWORD dwFunc = (iGtaVersion != GTASA_VERSION_USA10) ? 0x751AE0 : 0x751A90;
|
||||
|
||||
@@ -33,6 +33,7 @@ void RpWorldRender();
|
||||
void RwCameraSetClipPlane(RwCamera *camera, float farClip, float nearClip);
|
||||
void RwCameraSetViewWindow(RwCamera *camera, VECTOR2D *viewWindow);
|
||||
RpLight* RpLightCreate(int type);
|
||||
void RpClumpAddLight(RpClump *clump, RpLight *light);
|
||||
void RpLightSetColor(RpLight *light, RwRGBAReal *color);
|
||||
void RwCameraSetProjection(RwCamera *camera, int projection);
|
||||
void RwFrameTranslate(RwFrame *frame, VECTOR *v, int combine);
|
||||
|
||||
Reference in new issue
Block a user