summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a2a24f8)
raw | patch | inline | side by side (parent: a2a24f8)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Thu, 29 Dec 2022 12:09:32 +0000 (15:09 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Fri, 9 Jun 2023 09:09:04 +0000 (12:09 +0300) |
src/game/renders/opengl/r_render.pas | patch | blob | history | |
src/nogl/noGLuses.inc | patch | blob | history | |
src/shared/a_modes.inc | patch | blob | history |
index 7f52d9d74567f573656870c6f1a955114e214f24..18b14209101baf408fb40ff20c023eb0a0145220 100644 (file)
{$IFDEF ENABLE_SYSTEM}
g_system,
{$ENDIF}
+ {$IFDEF ENABLE_HOLMES}
+ g_holmes,
+ {$ENDIF}
SysUtils, Classes, Math,
g_basic,
e_log, utils, wadreader, mapdef,
r_Common_GetCameraPos(p, true, xx, yy);
if p <> nil then
begin
+ {$IFDEF ENABLE_HOLMES}
+ if p = gPlayer1 then
+ begin
+ g_Holmes_plrViewPos(x, y);
+ g_Holmes_plrViewSize(w, h);
+ end;
+ {$ENDIF}
r_Map_Draw(x, y, w, h, xx, yy, p);
r_Render_DrawStatsView(x, y, w, h, p);
if p.Spectator and p.NoRespawn then
if gShowMap then
r_Render_DrawMiniMap(0, 0, 160);
- // TODO draw holmes inspector
+ {$IFDEF ENABLE_HOLMES}
+ if g_holmes_enabled then
+ g_Holmes_Draw;
+ {$ENDIF}
if MessageText <> '' then
r_Common_DrawFormatText(MessageText, (gScreenWidth - 196) div 2, gScreenHeight div 2, 255, menufont, TBasePoint.BP_CENTER);
// TODO draw profilers
- // TODO draw holmes interface
+ {$IFDEF ENABLE_HOLMES}
+ g_Holmes_DrawUI;
+ {$ENDIF}
// TODO draw touch screen controls
diff --git a/src/nogl/noGLuses.inc b/src/nogl/noGLuses.inc
index acfe89e52ac0982c93d55b577f9a3206d1bfa596..1d5f2a41251180ed01f6be4a2005491bd2f615b4 100644 (file)
--- a/src/nogl/noGLuses.inc
+++ b/src/nogl/noGLuses.inc
{$DEFINE NOGL_INIT}
noGL in '../nogl/noGL.pas',
{$ENDIF}
-{$IFDEF USE_OPENGL}
+{$IF DEFINED(USE_OPENGL) OR DEFINED(USE_NEWGL)}
{$DEFINE NOGL_LISTS}
GL, GLExt,
{$ENDIF}
diff --git a/src/shared/a_modes.inc b/src/shared/a_modes.inc
index 9f7caa47b27a923ccabf38375e260aae619c1254..831214ab4c1e47f7916b14e96799c84ea794db11 100644 (file)
--- a/src/shared/a_modes.inc
+++ b/src/shared/a_modes.inc
{$IFNDEF USE_SDL2}
{$FATAL SDL2 required for current Holmes implementation}
{$ENDIF}
- {$IFNDEF USE_OPENGL}
+ {$IF NOT DEFINED(USE_OPENGL) AND NOT DEFINED(USE_NEWGL)}
{$FATAL Desktop OpenGL required for current Holmes implementation}
{$ENDIF}
{$ENDIF}