citra/src/citra_qt/configuration/configure_enhancements.h

49 lines
1.1 KiB
C++
Raw Normal View History

// Copyright 2019 Citra Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#pragma once
2019-08-10 04:08:02 +02:00
#include <memory>
2019-08-10 04:08:02 +02:00
#include <QWidget>
#include "common/common_types.h"
2019-08-10 04:08:02 +02:00
namespace Settings {
enum class StereoRenderOption : u32;
}
namespace ConfigurationShared {
enum class CheckState;
}
2019-08-10 04:08:02 +02:00
namespace Ui {
class ConfigureEnhancements;
}
class ConfigureEnhancements : public QWidget {
2019-08-10 04:08:02 +02:00
Q_OBJECT
public:
explicit ConfigureEnhancements(QWidget* parent = nullptr);
2019-08-10 04:08:02 +02:00
~ConfigureEnhancements();
void ApplyConfiguration();
void RetranslateUI();
void SetConfiguration();
void SetupPerGameUI();
2019-08-10 04:08:02 +02:00
private:
void updateShaders(Settings::StereoRenderOption stereo_option);
void updateTextureFilter(int index);
2019-08-10 04:08:02 +02:00
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;
QColor bg_color;
};