diff options
| author | ghost <void.ghost@yahoo.com> | 2015-09-22 05:28:26 +0300 |
|---|---|---|
| committer | ghost <void.ghost@yahoo.com> | 2015-09-24 15:19:55 +0300 |
| commit | 7c1565b201ed3e1a2579da3e55efa995cbfb3f5d (patch) | |
| tree | 72ff8b1ce267a3bf4e02e0c4f150707dfa614c30 /Source/Core/VideoCommon/VideoConfig.h | |
| parent | 07e4b4f7c4079a8cef8f8e875ad281b508fc63e8 (diff) | |
VideoConfig/LocalConfig/HotkeyManager: Added hotkeys for switching stereo-3d presets.
Added 3 depth/convergence presets. They are adjustable via (existing) hotkeys - changes to depth and convergence are applied to current preset.
Added 3 hotkeys for activating presets. Added hotkey for toggle between first and second preset.
Added OSD message for convergence/depth changes.
Presets are saved into per-game configs.
Diffstat (limited to 'Source/Core/VideoCommon/VideoConfig.h')
| -rw-r--r-- | Source/Core/VideoCommon/VideoConfig.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/VideoConfig.h b/Source/Core/VideoCommon/VideoConfig.h index 489929f5fd..3955e1fb2f 100644 --- a/Source/Core/VideoCommon/VideoConfig.h +++ b/Source/Core/VideoCommon/VideoConfig.h @@ -51,6 +51,14 @@ enum StereoMode STEREO_3DVISION }; +constexpr int STEREOSCOPY_PRESETS_NUM = 3; + +struct StereoscopyPreset final +{ + int depth; + int convergence; +}; + // NEVER inherit from this class. struct VideoConfig final { @@ -84,6 +92,8 @@ struct VideoConfig final int iStereoDepth; int iStereoConvergence; bool bStereoSwapEyes; + std::array<StereoscopyPreset, STEREOSCOPY_PRESETS_NUM> oStereoPresets; + int iStereoActivePreset; // Information bool bShowFPS; |
