2017-06-15 23:43:38 +00:00
|
|
|
// Copyright 2017 Dolphin Emulator Project
|
2021-07-05 01:22:19 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2017-06-15 23:43:38 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2022-11-14 05:01:19 +00:00
|
|
|
#include <array>
|
|
|
|
|
2018-07-06 22:40:15 +00:00
|
|
|
#include "DolphinQt/Config/Graphics/GraphicsWidget.h"
|
2017-06-15 23:43:38 +00:00
|
|
|
|
2020-10-18 02:27:09 +00:00
|
|
|
class GraphicsBool;
|
|
|
|
class GraphicsChoice;
|
|
|
|
class GraphicsSlider;
|
2017-06-15 23:43:38 +00:00
|
|
|
class GraphicsWindow;
|
|
|
|
class QCheckBox;
|
|
|
|
class QComboBox;
|
|
|
|
class QPushButton;
|
|
|
|
class QSlider;
|
2020-10-18 02:27:09 +00:00
|
|
|
class ToolTipComboBox;
|
2017-06-15 23:43:38 +00:00
|
|
|
|
|
|
|
class EnhancementsWidget final : public GraphicsWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit EnhancementsWidget(GraphicsWindow* parent);
|
|
|
|
|
|
|
|
private:
|
|
|
|
void LoadSettings() override;
|
|
|
|
void SaveSettings() override;
|
|
|
|
|
|
|
|
void CreateWidgets();
|
|
|
|
void ConnectWidgets();
|
|
|
|
void AddDescriptions();
|
2018-05-20 22:03:40 +00:00
|
|
|
void ConfigurePostProcessingShader();
|
2018-05-25 18:26:17 +00:00
|
|
|
void LoadPPShaders();
|
2017-06-15 23:43:38 +00:00
|
|
|
|
|
|
|
// Enhancements
|
2020-10-18 02:27:09 +00:00
|
|
|
GraphicsChoice* m_ir_combo;
|
|
|
|
ToolTipComboBox* m_aa_combo;
|
2022-11-20 23:27:35 +00:00
|
|
|
ToolTipComboBox* m_texture_filtering_combo;
|
2020-10-18 02:27:09 +00:00
|
|
|
ToolTipComboBox* m_pp_effect;
|
2017-06-15 23:43:38 +00:00
|
|
|
QPushButton* m_configure_pp_effect;
|
2020-10-18 02:27:09 +00:00
|
|
|
GraphicsBool* m_scaled_efb_copy;
|
|
|
|
GraphicsBool* m_per_pixel_lighting;
|
|
|
|
GraphicsBool* m_widescreen_hack;
|
|
|
|
GraphicsBool* m_disable_fog;
|
|
|
|
GraphicsBool* m_force_24bit_color;
|
|
|
|
GraphicsBool* m_disable_copy_filter;
|
|
|
|
GraphicsBool* m_arbitrary_mipmap_detection;
|
2017-06-15 23:43:38 +00:00
|
|
|
|
|
|
|
// Stereoscopy
|
2020-10-18 02:27:09 +00:00
|
|
|
GraphicsChoice* m_3d_mode;
|
|
|
|
GraphicsSlider* m_3d_depth;
|
|
|
|
GraphicsSlider* m_3d_convergence;
|
|
|
|
GraphicsBool* m_3d_swap_eyes;
|
2017-06-15 23:43:38 +00:00
|
|
|
|
|
|
|
int m_msaa_modes;
|
|
|
|
bool m_block_save;
|
|
|
|
};
|