mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-02 09:03:37 +00:00
Add support in GUI
This commit is contained in:
parent
219019a39b
commit
827b69816f
|
@ -54,9 +54,9 @@ struct Config
|
|||
};
|
||||
|
||||
struct {
|
||||
u32 enableHiresNoiseDithering;
|
||||
u32 enableDitheringPattern;
|
||||
u32 enableDitheringQuantization;
|
||||
u32 enableHiresNoiseDithering;
|
||||
u32 rdramImageDitheringMode;
|
||||
u32 enableLOD;
|
||||
u32 enableHWLighting;
|
||||
|
|
|
@ -143,6 +143,9 @@ void ConfigDialog::_init(bool reInit, bool blockCustomSettings)
|
|||
}
|
||||
|
||||
ui->ditheringModeComboBox->setCurrentIndex(config.generalEmulation.rdramImageDitheringMode);
|
||||
ui->ditheringQuantizationCheckBox->setChecked(config.generalEmulation.enableDitheringQuantization);
|
||||
ui->hiresNoiseDitheringCheckBox->setChecked(config.generalEmulation.enableHiresNoiseDithering);
|
||||
ui->ditheringPatternCheckBox->setChecked(config.generalEmulation.enableDitheringPattern);
|
||||
|
||||
switch (config.texture.screenShotFormat) {
|
||||
case 0:
|
||||
|
@ -445,6 +448,9 @@ void ConfigDialog::accept(bool justSave) {
|
|||
config.texture.bilinearMode = BILINEAR_3POINT;
|
||||
|
||||
config.generalEmulation.rdramImageDitheringMode = ui->ditheringModeComboBox->currentIndex();
|
||||
config.generalEmulation.enableDitheringQuantization = ui->ditheringQuantizationCheckBox->isChecked() ? 1 : 0;
|
||||
config.generalEmulation.enableHiresNoiseDithering = ui->hiresNoiseDitheringCheckBox->isChecked() ? 1 : 0;
|
||||
config.generalEmulation.enableDitheringPattern = ui->ditheringPatternCheckBox->isChecked() ? 1 : 0;
|
||||
|
||||
if (ui->pngRadioButton->isChecked())
|
||||
config.texture.screenShotFormat = 0;
|
||||
|
|
|
@ -41,6 +41,9 @@ void _loadSettings(QSettings & settings)
|
|||
|
||||
settings.beginGroup("generalEmulation");
|
||||
config.generalEmulation.enableDitheringPattern = settings.value("enableDitheringPattern", config.generalEmulation.enableDitheringPattern).toInt();
|
||||
config.generalEmulation.enableDitheringQuantization = settings.value("enableDitheringQuantization", config.generalEmulation.enableDitheringQuantization).toInt();
|
||||
config.generalEmulation.enableHiresNoiseDithering = settings.value("enableHiresNoiseDithering", config.generalEmulation.enableHiresNoiseDithering).toInt();
|
||||
config.generalEmulation.rdramImageDitheringMode = settings.value("rdramImageDitheringMode", config.generalEmulation.rdramImageDitheringMode).toInt();
|
||||
config.generalEmulation.enableLOD = settings.value("enableLOD", config.generalEmulation.enableLOD).toInt();
|
||||
config.generalEmulation.enableHWLighting = settings.value("enableHWLighting", config.generalEmulation.enableHWLighting).toInt();
|
||||
config.generalEmulation.enableShadersStorage = settings.value("enableShadersStorage", config.generalEmulation.enableShadersStorage).toInt();
|
||||
|
@ -213,6 +216,9 @@ void writeSettings(const QString & _strIniFolder)
|
|||
|
||||
settings.beginGroup("generalEmulation");
|
||||
settings.setValue("enableDitheringPattern", config.generalEmulation.enableDitheringPattern);
|
||||
settings.setValue("enableDitheringQuantization", config.generalEmulation.enableDitheringQuantization);
|
||||
settings.setValue("enableHiresNoiseDithering", config.generalEmulation.enableHiresNoiseDithering);
|
||||
settings.setValue("rdramImageDitheringMode", config.generalEmulation.rdramImageDitheringMode);
|
||||
settings.setValue("enableLOD", config.generalEmulation.enableLOD);
|
||||
settings.setValue("enableHWLighting", config.generalEmulation.enableHWLighting);
|
||||
settings.setValue("enableShadersStorage", config.generalEmulation.enableShadersStorage);
|
||||
|
@ -403,6 +409,9 @@ void saveCustomRomSettings(const QString & _strIniFolder, const char * _strRomNa
|
|||
|
||||
settings.beginGroup("generalEmulation");
|
||||
WriteCustomSetting(generalEmulation, enableDitheringPattern);
|
||||
WriteCustomSetting(generalEmulation, enableDitheringQuantization);
|
||||
WriteCustomSetting(generalEmulation, enableHiresNoiseDithering);
|
||||
WriteCustomSetting(generalEmulation, rdramImageDitheringMode);
|
||||
WriteCustomSetting(generalEmulation, enableLOD);
|
||||
WriteCustomSetting(generalEmulation, enableHWLighting);
|
||||
WriteCustomSetting(generalEmulation, enableShadersStorage);
|
||||
|
|
|
@ -872,81 +872,6 @@
|
|||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="ditheringGroupBox">
|
||||
<property name="title">
|
||||
<string>Dithering</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="ditheringGroupBoxVerticalLayout">
|
||||
<item>
|
||||
<widget class="QFrame" name="ditheringFrame">
|
||||
<layout class="QVBoxLayout" name="ditheringFrameVerticalLayout">
|
||||
<property name="spacing">
|
||||
<number>5</number>
|
||||
</property>
|
||||
<property name="leftMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="shaderDitheringCheckBox">
|
||||
<property name="text">
|
||||
<string>Dithering pattern on output image</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="hiresNoiseDitheringCheckBox">
|
||||
<property name="text">
|
||||
<string>High resolution noise dithering</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="ditheringLabel">
|
||||
<property name="text">
|
||||
<string>RDRAM image dithering mode:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="ditheringModeComboBox">
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>disable</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Bayer</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Magic square</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Blue noise</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_14">
|
||||
<property name="spacing">
|
||||
|
@ -1455,6 +1380,86 @@
|
|||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="ditheringGroupBox">
|
||||
<property name="title">
|
||||
<string>Dithering</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_6">
|
||||
<item row="0" column="1">
|
||||
<widget class="QCheckBox" name="ditheringQuantizationCheckBox">
|
||||
<property name="toolTip">
|
||||
<string><html><head/><body><p>Tooltip to be here.</p></body></html></string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Enable 5bit quantization</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QCheckBox" name="hiresNoiseDitheringCheckBox">
|
||||
<property name="toolTip">
|
||||
<string><html><head/><body><p>Tooltip to be here.</p></body></html></string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>High resolution noise dithering</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<widget class="QCheckBox" name="ditheringPatternCheckBox">
|
||||
<property name="toolTip">
|
||||
<string><html><head/><body><p>Tooltip to be here.</p></body></html></string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Dithering pattern on output image</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_24">
|
||||
<item>
|
||||
<widget class="QLabel" name="ditheringLabel">
|
||||
<property name="toolTip">
|
||||
<string><html><head/><body><p>Tooltip to be here.</p></body></html></string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>RDRAM image dithering:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="ditheringModeComboBox">
|
||||
<property name="toolTip">
|
||||
<string><html><head/><body><p>Tooltip to be here.</p></body></html></string>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>disable</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Bayer</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Magic square</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Blue noise</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="nativeRes2DGroupBox">
|
||||
<property name="title">
|
||||
|
|
Loading…
Reference in New Issue
Block a user