diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-07-15 17:19:32 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-07-17 23:04:26 +0200 |
commit | d0404cbdb77bd82abf578ce28093990db94743f2 (patch) | |
tree | 1a7232c3dcdd6c371ab5fbde0fc6bf04c5bc7005 /src/render/Draw.h | |
parent | Merge pull request #1217 from Nopey/master (diff) | |
download | re3-d0404cbdb77bd82abf578ce28093990db94743f2.tar re3-d0404cbdb77bd82abf578ce28093990db94743f2.tar.gz re3-d0404cbdb77bd82abf578ce28093990db94743f2.tar.bz2 re3-d0404cbdb77bd82abf578ce28093990db94743f2.tar.lz re3-d0404cbdb77bd82abf578ce28093990db94743f2.tar.xz re3-d0404cbdb77bd82abf578ce28093990db94743f2.tar.zst re3-d0404cbdb77bd82abf578ce28093990db94743f2.zip |
Diffstat (limited to 'src/render/Draw.h')
-rw-r--r-- | src/render/Draw.h | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/src/render/Draw.h b/src/render/Draw.h deleted file mode 100644 index 8727e0e0..00000000 --- a/src/render/Draw.h +++ /dev/null @@ -1,73 +0,0 @@ -#pragma once - -enum eAspectRatio -{ - // Make sure these work the same as FrontEndMenuManager.m_PrefsUseWideScreen - // without widescreen support - AR_AUTO, - AR_4_3, - AR_5_4, - AR_16_10, - AR_16_9, - AR_21_9, - - AR_MAX, -}; - -class CDraw -{ -private: - static float ms_fNearClipZ; - static float ms_fFarClipZ; - static float ms_fFOV; -#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; - static uint8 FadeGreen; - static uint8 FadeBlue; - -#ifdef PROPER_SCALING - static bool ms_bProperScaling; -#endif -#ifdef FIX_RADAR - static bool ms_bFixRadar; -#endif -#ifdef FIX_SPRITES - static bool ms_bFixSprites; -#endif - - static void SetNearClipZ(float nearclip) { ms_fNearClipZ = nearclip; } - 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; } -#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 - static float ConvertFOV(float fov); - static float GetAspectRatio(void) { return ms_fAspectRatio; } - static void SetAspectRatio(float ratio) { ms_fAspectRatio = ratio; } -#else - static float GetAspectRatio(void) { return FindAspectRatio(); } -#endif - -#ifdef PROPER_SCALING - static float ScaleY(float y); -#endif -}; |