engine: add PARM_GET_*_PTR for lightstyles and dlights arrays
This commit is contained in:
parent
b45bc9af67
commit
9ed55776a9
2 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue