From f1487cf576ca08ddcc981cbf8ae62134d974d281 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Tue, 28 Mar 2023 20:42:14 +0300 Subject: [PATCH] engine: ref_api: bump RefAPI version to 4, R_StudioEstimateFrame now has time argument --- engine/ref_api.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/engine/ref_api.h b/engine/ref_api.h index dbcef6d0..944afbd7 100644 --- a/engine/ref_api.h +++ b/engine/ref_api.h @@ -33,7 +33,8 @@ GNU General Public License for more details. // 1. Initial release // 2. FS functions are removed, instead we have full fs_api_t // 3. SlerpBones, CalcBonePosition/Quaternion calls were moved to libpublic/mathlib -#define REF_API_VERSION 3 +// 4. R_StudioEstimateFrame now has time argument +#define REF_API_VERSION 4 #define TF_SKY (TF_SKYSIDE|TF_NOMIPMAP) @@ -499,7 +500,7 @@ typedef struct ref_interface_s void (*R_ClearAllDecals)( void ); // studio interface - float (*R_StudioEstimateFrame)( cl_entity_t *e, mstudioseqdesc_t *pseqdesc ); + float (*R_StudioEstimateFrame)( cl_entity_t *e, mstudioseqdesc_t *pseqdesc, double time ); void (*R_StudioLerpMovement)( cl_entity_t *e, double time, vec3_t origin, vec3_t angles ); void (*CL_InitStudioAPI)( void );