From 0cf1e3b1da64c6fe97aabbdd9bef11b45264771d Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Thu, 4 Apr 2019 23:13:55 +0300 Subject: [PATCH] ref: add REF_D3D placeholder for compatibiltiy(not planned anyway) --- engine/ref_api.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/engine/ref_api.h b/engine/ref_api.h index 1f644b4d..0f3a4c1b 100644 --- a/engine/ref_api.h +++ b/engine/ref_api.h @@ -149,10 +149,13 @@ enum ref_defaultsprite_e REF_CHROME_SPRITE // cl_sprite_shell }; +// the order of first three is important! +// so you can use this value in IEngineStudio.StudioIsHardware enum ref_graphic_apis_e { REF_SOFTWARE, // hypothetical: just make a surface to draw on, in software - REF_GL, // create GL context + REF_GL, // create GL context + REF_D3D, // Direct3D }; typedef enum