summaryrefslogtreecommitdiffstats
path: root/src/render/Draw.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-06-21 14:50:00 +0200
committeraap <aap@papnet.eu>2020-06-21 14:52:44 +0200
commit60f736f20fe9493936dab95963b52b18d3353ffc (patch)
tree40a934885b26e9d44e88a4dd3965627ecfddd364 /src/render/Draw.h
parentMerge branch 'miami' of github.com:GTAmodding/re3 into miami (diff)
downloadre3-60f736f20fe9493936dab95963b52b18d3353ffc.tar
re3-60f736f20fe9493936dab95963b52b18d3353ffc.tar.gz
re3-60f736f20fe9493936dab95963b52b18d3353ffc.tar.bz2
re3-60f736f20fe9493936dab95963b52b18d3353ffc.tar.lz
re3-60f736f20fe9493936dab95963b52b18d3353ffc.tar.xz
re3-60f736f20fe9493936dab95963b52b18d3353ffc.tar.zst
re3-60f736f20fe9493936dab95963b52b18d3353ffc.zip
Diffstat (limited to '')
-rw-r--r--src/render/Draw.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/render/Draw.h b/src/render/Draw.h
index 46e85e49..2976dc34 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 CalculateAspectRatio(void);
#ifdef ASPECT_RATIO_SCALE