- moved the remaining core parts of the GL renderer to 'common'.

This commit is contained in:
Christoph Oelckers 2020-04-29 17:19:17 +02:00
commit 6cf91d3941
39 changed files with 61 additions and 70 deletions

View file

@ -114,7 +114,7 @@
#include "scriptutil.h"
#include "v_palette.h"
#include "texturemanager.h"
#include "hwrenderer/utility/hw_clock.h"
#include "hw_clock.h"
#include "hwrenderer/scene/hw_drawinfo.h"
#ifdef __unix__
@ -2855,6 +2855,16 @@ IntRect System_GetSceneRect()
mSceneViewport.height = height;
return mSceneViewport;
}
FString System_GetLocationDescription()
{
auto& vp = r_viewpoint;
auto Level = vp.ViewLevel;
return FStringf("Map %s: \"%s\",\nx = %1.4f, y = %1.4f, z = %1.4f, angle = %1.4f, pitch = %1.4f\n",
Level->MapName.GetChars(), Level->LevelName.GetChars(), vp.Pos.X, vp.Pos.Y, vp.Pos.Z, vp.Angles.Yaw.Degrees, vp.Angles.Pitch.Degrees);
}
//==========================================================================
//
// DoomSpecificInfo
@ -3063,6 +3073,7 @@ static int D_DoomMain_Internal (void)
System_DisableTextureFilter,
System_OnScreenSizeChanged,
System_GetSceneRect,
System_GetLocationDescription,
};
sysCallbacks = &syscb;