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

This commit is contained in:
RD42 2024-08-04 22:34:16 +08:00
parent 16ddecf959
commit 8edb4abbcf
2 changed files with 13 additions and 0 deletions

View File

@ -315,6 +315,18 @@ void RpLightSetColor(RpLight *light, RwRGBAReal *color)
_asm pop edx
}
void RpLightSetRadius(RpLight *light, float radius)
{
DWORD dwFunc = 0x751A70;
_asm push radius
_asm push light
_asm mov edx, dwFunc
_asm call edx
_asm pop edx
_asm pop edx
}
void RwCameraSetProjection(RwCamera *camera, int projection)
{
DWORD dwFunc = (iGtaVersion != GTASA_VERSION_USA10) ? 0x7EE3E0 : 0x7EE3A0;

View File

@ -35,6 +35,7 @@ void RwCameraSetViewWindow(RwCamera *camera, VECTOR2D *viewWindow);
RpLight* RpLightCreate(int type);
void RpClumpAddLight(RpClump *clump, RpLight *light);
void RpLightSetColor(RpLight *light, RwRGBAReal *color);
void RpLightSetRadius(RpLight *light, float radius);
void RwCameraSetProjection(RwCamera *camera, int projection);
void RwFrameTranslate(RwFrame *frame, VECTOR *v, int combine);
void RwFrameRotate(RwFrame* frame, int axis, float angle);