diff options
author | eray orçunus <erayorcunus@gmail.com> | 2019-06-16 21:44:05 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2019-06-16 21:44:05 +0200 |
commit | beb6f0d4c75fa5f7be4998f78929e0a66fc9540c (patch) | |
tree | 8a1f28b7f4987d222c26749e99529f9002e0f0ca /src/render/Draw.h | |
parent | CPed fixes and needed functions for further commits (diff) | |
parent | fix the cleanup... (diff) | |
download | re3-beb6f0d4c75fa5f7be4998f78929e0a66fc9540c.tar re3-beb6f0d4c75fa5f7be4998f78929e0a66fc9540c.tar.gz re3-beb6f0d4c75fa5f7be4998f78929e0a66fc9540c.tar.bz2 re3-beb6f0d4c75fa5f7be4998f78929e0a66fc9540c.tar.lz re3-beb6f0d4c75fa5f7be4998f78929e0a66fc9540c.tar.xz re3-beb6f0d4c75fa5f7be4998f78929e0a66fc9540c.tar.zst re3-beb6f0d4c75fa5f7be4998f78929e0a66fc9540c.zip |
Diffstat (limited to '')
-rw-r--r-- | src/render/Draw.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/render/Draw.h b/src/render/Draw.h index 408c41b0..6dd42121 100644 --- a/src/render/Draw.h +++ b/src/render/Draw.h @@ -6,6 +6,8 @@ private: static float &ms_fNearClipZ; static float &ms_fFarClipZ; static float &ms_fFOV; + static float ms_fAspectRatio; + public: static uint8 &FadeValue; static uint8 &FadeRed; @@ -16,6 +18,11 @@ public: static float GetNearClipZ(void) { return ms_fNearClipZ; } static void SetFarClipZ(float farclip) { ms_fFarClipZ = farclip; } static float GetFarClipZ(void) { return ms_fFarClipZ; } + static void SetFOV(float fov); static float GetFOV(void) { return ms_fFOV; } + + static void CalculateAspectRatio(); + static float GetAspectRatio(void) { return ms_fAspectRatio; } + }; |