mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-09-20 04:36:01 +08:00
[saco] Implement/match RpClumpAddLight(...)
This commit is contained in:
@ -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