mirror of
https://github.com/citra-emu/citra.git
synced 2025-04-07 13:00:07 +00:00
51 lines
1.2 KiB
C++
51 lines
1.2 KiB
C++
// Copyright 2019 Citra Emulator Project
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <memory>
|
|
#include <QWidget>
|
|
#include "common/common_types.h"
|
|
|
|
namespace Settings {
|
|
enum class StereoRenderOption : u32;
|
|
}
|
|
|
|
namespace ConfigurationShared {
|
|
enum class CheckState;
|
|
}
|
|
|
|
namespace Ui {
|
|
class ConfigureEnhancements;
|
|
}
|
|
|
|
class ConfigureEnhancements : public QWidget {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ConfigureEnhancements(QWidget* parent = nullptr);
|
|
~ConfigureEnhancements();
|
|
|
|
void ApplyConfiguration();
|
|
void RetranslateUI();
|
|
void SetConfiguration();
|
|
|
|
void SetupPerGameUI();
|
|
|
|
private:
|
|
void updateShaders(Settings::StereoRenderOption stereo_option);
|
|
void updateTextureFilter(int index);
|
|
|
|
std::unique_ptr<Ui::ConfigureEnhancements> ui;
|
|
ConfigurationShared::CheckState linear_filter;
|
|
ConfigurationShared::CheckState swap_screen;
|
|
ConfigurationShared::CheckState upright_screen;
|
|
ConfigurationShared::CheckState dump_textures;
|
|
ConfigurationShared::CheckState custom_textures;
|
|
ConfigurationShared::CheckState preload_textures;
|
|
ConfigurationShared::CheckState async_custom_loading;
|
|
ConfigurationShared::CheckState swap_eyes;
|
|
QColor bg_color;
|
|
};
|