diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-06-22 13:07:49 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-06-22 13:07:49 +0200 |
commit | fe77b2ac53526d32794f7ae5f24bf95161b184df (patch) | |
tree | 3a846c1c1e9eb05a22720c68faa343ff5ea02c94 /src/render/Draw.h | |
parent | fixes (diff) | |
parent | Merge pull request #637 from Nick007J/master (diff) | |
download | re3-fe77b2ac53526d32794f7ae5f24bf95161b184df.tar re3-fe77b2ac53526d32794f7ae5f24bf95161b184df.tar.gz re3-fe77b2ac53526d32794f7ae5f24bf95161b184df.tar.bz2 re3-fe77b2ac53526d32794f7ae5f24bf95161b184df.tar.lz re3-fe77b2ac53526d32794f7ae5f24bf95161b184df.tar.xz re3-fe77b2ac53526d32794f7ae5f24bf95161b184df.tar.zst re3-fe77b2ac53526d32794f7ae5f24bf95161b184df.zip |
Diffstat (limited to '')
-rw-r--r-- | src/render/Draw.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/render/Draw.h b/src/render/Draw.h index 55958a2a..5c4f95b1 100644 --- a/src/render/Draw.h +++ b/src/render/Draw.h @@ -16,14 +16,15 @@ private: static float ms_fNearClipZ; static float ms_fFarClipZ; static float ms_fFOV; -public: - static float ms_fLODDistance; // set but unused? - #ifdef ASPECT_RATIO_SCALE // we use this variable to scale a lot of 2D elements // so better cache it static float ms_fAspectRatio; + // similar thing for 3D rendering + static float ms_fScaledFOV; #endif +public: + static float ms_fLODDistance; // set but unused? static uint8 FadeValue; static uint8 FadeRed; @@ -37,6 +38,11 @@ public: static void SetFOV(float fov); static float GetFOV(void) { return ms_fFOV; } +#ifdef ASPECT_RATIO_SCALE + static float GetScaledFOV(void) { return ms_fScaledFOV; } +#else + static float GetScaledFOV(void) { return ms_fFOV; } +#endif static float FindAspectRatio(void); #ifdef ASPECT_RATIO_SCALE |