2019-08-09 21:08:18 -05:00
|
|
|
// Copyright 2019 Citra Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
2019-08-09 21:08:02 -05:00
|
|
|
|
2020-09-30 20:23:01 -05:00
|
|
|
#include <memory>
|
2019-08-09 21:08:02 -05:00
|
|
|
#include <QWidget>
|
2022-12-08 05:27:25 -06:00
|
|
|
#include "common/common_types.h"
|
2019-08-09 21:08:02 -05:00
|
|
|
|
2019-12-06 01:43:06 -06:00
|
|
|
namespace Settings {
|
2022-12-08 05:27:25 -06:00
|
|
|
enum class StereoRenderOption : u32;
|
2019-12-06 01:43:06 -06:00
|
|
|
}
|
|
|
|
|
2023-03-21 16:12:13 -05:00
|
|
|
namespace ConfigurationShared {
|
|
|
|
enum class CheckState;
|
|
|
|
}
|
|
|
|
|
2019-08-09 21:08:02 -05:00
|
|
|
namespace Ui {
|
|
|
|
class ConfigureEnhancements;
|
|
|
|
}
|
|
|
|
|
2019-08-09 21:08:18 -05:00
|
|
|
class ConfigureEnhancements : public QWidget {
|
2019-08-09 21:08:02 -05:00
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2019-08-09 21:08:18 -05:00
|
|
|
explicit ConfigureEnhancements(QWidget* parent = nullptr);
|
2019-08-09 21:08:02 -05:00
|
|
|
~ConfigureEnhancements();
|
|
|
|
|
2019-08-09 21:08:18 -05:00
|
|
|
void ApplyConfiguration();
|
|
|
|
void RetranslateUI();
|
|
|
|
void SetConfiguration();
|
|
|
|
|
2023-03-21 16:12:13 -05:00
|
|
|
void SetupPerGameUI();
|
|
|
|
|
2019-08-09 21:08:02 -05:00
|
|
|
private:
|
2019-12-06 01:43:06 -06:00
|
|
|
void updateShaders(Settings::StereoRenderOption stereo_option);
|
2020-03-16 09:42:05 -05:00
|
|
|
void updateTextureFilter(int index);
|
2019-08-09 21:08:02 -05:00
|
|
|
|
2020-09-30 20:23:01 -05:00
|
|
|
std::unique_ptr<Ui::ConfigureEnhancements> ui;
|
2023-03-21 16:12:13 -05:00
|
|
|
ConfigurationShared::CheckState linear_filter;
|
|
|
|
ConfigurationShared::CheckState swap_screen;
|
|
|
|
ConfigurationShared::CheckState upright_screen;
|
|
|
|
ConfigurationShared::CheckState dump_textures;
|
|
|
|
ConfigurationShared::CheckState custom_textures;
|
|
|
|
ConfigurationShared::CheckState preload_textures;
|
2023-04-26 23:38:28 -05:00
|
|
|
ConfigurationShared::CheckState async_custom_loading;
|
2019-08-09 21:08:18 -05:00
|
|
|
QColor bg_color;
|
|
|
|
};
|