2010-04-25 00:31:27 +00:00
|
|
|
/*
|
2009-02-09 21:15:56 +00:00
|
|
|
* Copyright (C) 2007-2009 Gabest
|
|
|
|
* http://www.gabest.org
|
|
|
|
*
|
|
|
|
* This Program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
* any later version.
|
2010-04-25 00:31:27 +00:00
|
|
|
*
|
2009-02-09 21:15:56 +00:00
|
|
|
* This Program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2010-04-25 00:31:27 +00:00
|
|
|
*
|
2009-02-09 21:15:56 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with GNU Make; see the file COPYING. If not, write to
|
2012-09-09 18:16:11 +00:00
|
|
|
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA USA.
|
2009-02-09 21:15:56 +00:00
|
|
|
* http://www.gnu.org/copyleft/gpl.html
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2009-06-03 12:09:04 +00:00
|
|
|
#include "GSDialog.h"
|
2009-02-09 21:15:56 +00:00
|
|
|
#include "GSSetting.h"
|
|
|
|
|
2015-11-21 15:51:09 +00:00
|
|
|
class GSShaderDlg : public GSDialog
|
2012-02-29 00:29:29 +00:00
|
|
|
{
|
2017-01-06 15:43:08 +00:00
|
|
|
int m_saturation;
|
|
|
|
int m_brightness;
|
|
|
|
int m_contrast;
|
2012-02-29 00:29:29 +00:00
|
|
|
|
|
|
|
void UpdateControls();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void OnInit();
|
|
|
|
bool OnMessage(UINT message, WPARAM wParam, LPARAM lParam);
|
|
|
|
|
|
|
|
public:
|
2015-11-21 15:51:09 +00:00
|
|
|
GSShaderDlg();
|
2012-02-29 00:29:29 +00:00
|
|
|
};
|
|
|
|
|
2012-03-06 19:39:05 +00:00
|
|
|
class GSHacksDlg : public GSDialog
|
|
|
|
{
|
2018-08-02 19:55:14 +00:00
|
|
|
int m_old_skipdraw_offset;
|
|
|
|
int m_old_skipdraw;
|
2012-03-06 19:39:05 +00:00
|
|
|
|
|
|
|
void UpdateControls();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void OnInit();
|
|
|
|
bool OnMessage(UINT message, WPARAM wParam, LPARAM lParam);
|
|
|
|
|
|
|
|
public:
|
2019-06-17 07:31:16 +00:00
|
|
|
GSHacksDlg();
|
2012-03-06 19:39:05 +00:00
|
|
|
};
|
|
|
|
|
2017-01-06 15:40:31 +00:00
|
|
|
class GSOSDDlg : public GSDialog
|
|
|
|
{
|
2018-12-12 06:00:00 +00:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
int r;
|
|
|
|
int g;
|
|
|
|
int b;
|
|
|
|
int a;
|
|
|
|
} m_color;
|
2017-01-06 15:40:31 +00:00
|
|
|
|
|
|
|
void UpdateControls();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void OnInit();
|
|
|
|
bool OnMessage(UINT message, WPARAM wParam, LPARAM lParam);
|
|
|
|
|
|
|
|
public:
|
|
|
|
GSOSDDlg();
|
|
|
|
};
|
|
|
|
|
2009-06-03 12:09:04 +00:00
|
|
|
class GSSettingsDlg : public GSDialog
|
2009-02-09 21:15:56 +00:00
|
|
|
{
|
2014-09-22 00:50:51 +00:00
|
|
|
|
2012-08-06 05:26:44 +00:00
|
|
|
struct Adapter
|
|
|
|
{
|
|
|
|
std::string name;
|
|
|
|
std::string id;
|
|
|
|
D3D_FEATURE_LEVEL level;
|
2014-09-22 00:50:51 +00:00
|
|
|
Adapter(const std::string &n, const std::string &i, const D3D_FEATURE_LEVEL &l) : name(n), id(i), level(l) {}
|
2012-08-06 05:26:44 +00:00
|
|
|
};
|
2017-02-24 16:55:39 +00:00
|
|
|
|
2018-08-22 16:53:15 +00:00
|
|
|
std::vector<GSSetting> m_renderers;
|
|
|
|
std::vector<Adapter> m_d3d11_adapters;
|
|
|
|
std::vector<Adapter> *m_current_adapters;
|
|
|
|
std::string m_last_selected_adapter_id;
|
2014-09-22 03:29:40 +00:00
|
|
|
|
2017-05-26 15:57:49 +00:00
|
|
|
std::vector<GSSetting> m_ocl_devs;
|
2010-04-25 00:31:27 +00:00
|
|
|
|
2018-08-22 16:53:03 +00:00
|
|
|
std::vector<Adapter> EnumerateD3D11Adapters();
|
|
|
|
|
2018-08-22 16:53:15 +00:00
|
|
|
void UpdateAdapters();
|
2009-06-04 08:32:31 +00:00
|
|
|
void UpdateControls();
|
|
|
|
|
2009-06-03 12:09:04 +00:00
|
|
|
protected:
|
|
|
|
void OnInit();
|
|
|
|
bool OnCommand(HWND hWnd, UINT id, UINT code);
|
|
|
|
|
2009-02-09 21:15:56 +00:00
|
|
|
public:
|
2015-07-13 05:41:48 +00:00
|
|
|
GSSettingsDlg();
|
2010-04-25 00:31:27 +00:00
|
|
|
};
|