mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: add PARM_GET_*_PTR for lightstyles and dlights arrays
This commit is contained in:
@@ -220,6 +220,12 @@ intptr_t CL_RenderGetParm( const int parm, const int arg, const qboolean checkRe
|
||||
case PARM_GET_SCREENGAMMATABLE_PTR:
|
||||
case PARM_GET_LINEARGAMMATABLE_PTR:
|
||||
return V_GetGammaPtr( parm );
|
||||
case PARM_GET_LIGHTSTYLES_PTR:
|
||||
return (intptr_t)CL_GetLightStyle( 0 );
|
||||
case PARM_GET_DLIGHTS_PTR:
|
||||
return (intptr_t)CL_GetDynamicLight( 0 );
|
||||
case PARM_GET_ELIGHTS_PTR:
|
||||
return (intptr_t)CL_GetEntityLight( 0 );
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
||||
@@ -296,6 +296,10 @@ typedef enum
|
||||
PARM_GET_SCREENGAMMATABLE_PTR = -18,
|
||||
PARM_GET_LINEARGAMMATABLE_PTR = -19,
|
||||
|
||||
PARM_GET_LIGHTSTYLES_PTR = -20,
|
||||
PARM_GET_DLIGHTS_PTR = -21,
|
||||
PARM_GET_ELIGHTS_PTR = -22,
|
||||
|
||||
// implemented by ref_dll
|
||||
|
||||
// returns non-null integer if filtering is enabled for texture
|
||||
|
||||
Reference in New Issue
Block a user