From 11172838f2eeaec940641415eaeb7b3ad38e0fe4 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Thu, 25 Jan 2024 05:43:51 +0300 Subject: [PATCH] engine: ref_api: add PARM_TEX_FILTERING into RefAPI to query if filtering is enabled for selected texture --- engine/ref_api.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/engine/ref_api.h b/engine/ref_api.h index db47ea51..58525887 100644 --- a/engine/ref_api.h +++ b/engine/ref_api.h @@ -283,6 +283,12 @@ typedef enum PARM_GET_MOVEVARS_PTR = -13, // clgame.movevars PARM_GET_PALETTE_PTR = -14, // clgame.palette PARM_GET_VIEWENT_PTR = -15, // clgame.viewent + + // implemented by ref_dll + + // returns non-null integer if filtering is enabled for texture + // pass -1 to query global filtering settings + PARM_TEX_FILTERING = -65536, } ref_parm_e; typedef struct ref_api_s