2017-06-16 01:43:38 +02:00
|
|
|
// Copyright 2017 Dolphin Emulator Project
|
2021-07-05 03:22:19 +02:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2017-06-16 01:43:38 +02:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2022-11-14 06:01:19 +01:00
|
|
|
#include <array>
|
|
|
|
|
2023-04-28 20:48:48 -07:00
|
|
|
#include <QWidget>
|
2017-06-16 01:43:38 +02:00
|
|
|
|
2023-04-21 14:02:53 -07:00
|
|
|
class ConfigBool;
|
2023-04-24 20:36:43 -07:00
|
|
|
class ConfigChoice;
|
2023-04-28 20:11:55 -07:00
|
|
|
class ConfigSlider;
|
2017-06-16 01:43:38 +02:00
|
|
|
class GraphicsWindow;
|
|
|
|
class QCheckBox;
|
|
|
|
class QComboBox;
|
|
|
|
class QPushButton;
|
|
|
|
class QSlider;
|
2020-10-17 21:27:09 -05:00
|
|
|
class ToolTipComboBox;
|
2023-08-13 22:46:46 +02:00
|
|
|
class ToolTipPushButton;
|
2024-08-17 22:09:12 -07:00
|
|
|
enum class StereoMode : int;
|
2017-06-16 01:43:38 +02:00
|
|
|
|
2023-04-28 20:48:48 -07:00
|
|
|
class EnhancementsWidget final : public QWidget
|
2017-06-16 01:43:38 +02:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit EnhancementsWidget(GraphicsWindow* parent);
|
|
|
|
|
|
|
|
private:
|
2023-04-28 20:48:48 -07:00
|
|
|
void LoadSettings();
|
|
|
|
void SaveSettings();
|
2017-06-16 01:43:38 +02:00
|
|
|
|
|
|
|
void CreateWidgets();
|
|
|
|
void ConnectWidgets();
|
|
|
|
void AddDescriptions();
|
2023-06-10 11:48:40 +03:00
|
|
|
void ConfigureColorCorrection();
|
2018-05-20 23:03:40 +01:00
|
|
|
void ConfigurePostProcessingShader();
|
2024-08-17 22:09:12 -07:00
|
|
|
void LoadPPShaders(StereoMode stereo_mode);
|
2017-06-16 01:43:38 +02:00
|
|
|
|
|
|
|
// Enhancements
|
2023-04-24 20:36:43 -07:00
|
|
|
ConfigChoice* m_ir_combo;
|
2020-10-17 21:27:09 -05:00
|
|
|
ToolTipComboBox* m_aa_combo;
|
2022-11-21 00:27:35 +01:00
|
|
|
ToolTipComboBox* m_texture_filtering_combo;
|
2023-06-27 03:23:08 +03:00
|
|
|
ToolTipComboBox* m_output_resampling_combo;
|
2020-10-17 21:27:09 -05:00
|
|
|
ToolTipComboBox* m_pp_effect;
|
2023-08-13 22:46:46 +02:00
|
|
|
ToolTipPushButton* m_configure_color_correction;
|
2017-06-16 01:43:38 +02:00
|
|
|
QPushButton* m_configure_pp_effect;
|
2023-04-21 14:02:53 -07:00
|
|
|
ConfigBool* m_scaled_efb_copy;
|
|
|
|
ConfigBool* m_per_pixel_lighting;
|
|
|
|
ConfigBool* m_widescreen_hack;
|
|
|
|
ConfigBool* m_disable_fog;
|
|
|
|
ConfigBool* m_force_24bit_color;
|
|
|
|
ConfigBool* m_disable_copy_filter;
|
|
|
|
ConfigBool* m_arbitrary_mipmap_detection;
|
2023-06-10 11:48:40 +03:00
|
|
|
ConfigBool* m_hdr;
|
2017-06-16 01:43:38 +02:00
|
|
|
|
|
|
|
// Stereoscopy
|
2023-04-24 20:36:43 -07:00
|
|
|
ConfigChoice* m_3d_mode;
|
2023-04-28 20:11:55 -07:00
|
|
|
ConfigSlider* m_3d_depth;
|
|
|
|
ConfigSlider* m_3d_convergence;
|
2023-04-21 14:02:53 -07:00
|
|
|
ConfigBool* m_3d_swap_eyes;
|
2024-08-15 17:20:00 +10:00
|
|
|
ConfigBool* m_3d_per_eye_resolution;
|
2017-06-16 01:43:38 +02:00
|
|
|
|
|
|
|
int m_msaa_modes;
|
|
|
|
bool m_block_save;
|
|
|
|
};
|