add threaded 3D option to the interface and config file. not functional yet.
This commit is contained in:
parent
0c31a7ab01
commit
9d2b36127d
|
@ -33,6 +33,8 @@ int WindowHeight;
|
|||
|
||||
int DirectBoot;
|
||||
|
||||
int Threaded3D;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
char Name[16];
|
||||
|
@ -77,6 +79,8 @@ ConfigEntry ConfigFile[] =
|
|||
|
||||
{"DirectBoot", 0, &DirectBoot, 1, NULL, 0},
|
||||
|
||||
{"Threaded3D", 0, &Threaded3D, 1, NULL, 0},
|
||||
|
||||
{"", -1, NULL, 0, NULL, 0}
|
||||
};
|
||||
|
||||
|
|
|
@ -35,6 +35,8 @@ extern int WindowHeight;
|
|||
|
||||
extern int DirectBoot;
|
||||
|
||||
extern int Threaded3D;
|
||||
|
||||
}
|
||||
|
||||
#endif // CONFIG_H
|
||||
|
|
|
@ -36,6 +36,10 @@ EmuConfigDialog::EmuConfigDialog(wxWindow* parent)
|
|||
vboxmain->Add(cbDirectBoot, 0, wxALL&(~wxBOTTOM), 15);
|
||||
cbDirectBoot->SetValue(Config::DirectBoot != 0);
|
||||
|
||||
cbThreaded3D = new wxCheckBox(this, wxID_ANY, "Threaded 3D renderer");
|
||||
vboxmain->Add(cbThreaded3D, 0, wxALL&(~wxBOTTOM), 15);
|
||||
cbThreaded3D->SetValue(Config::Threaded3D != 0);
|
||||
|
||||
{
|
||||
wxPanel* p = new wxPanel(this);
|
||||
wxBoxSizer* sizer = new wxBoxSizer(wxHORIZONTAL);
|
||||
|
@ -62,6 +66,7 @@ EmuConfigDialog::~EmuConfigDialog()
|
|||
void EmuConfigDialog::OnOk(wxCommandEvent& event)
|
||||
{
|
||||
Config::DirectBoot = cbDirectBoot->GetValue() ? 1:0;
|
||||
Config::Threaded3D = cbThreaded3D->GetValue() ? 1:0;
|
||||
Config::Save();
|
||||
|
||||
Close();
|
||||
|
|
|
@ -37,6 +37,7 @@ private:
|
|||
void OnCancel(wxCommandEvent& event);
|
||||
|
||||
wxCheckBox* cbDirectBoot;
|
||||
wxCheckBox* cbThreaded3D;
|
||||
};
|
||||
|
||||
#endif // WX_EMUCONFIG_H
|
||||
|
|
Loading…
Reference in New Issue