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-05-18 11:08:04 +00:00
|
|
|
#include "GSdx.h"
|
2018-11-16 18:41:37 +00:00
|
|
|
#include "Window/GSWnd.h"
|
2009-02-09 21:15:56 +00:00
|
|
|
#include "GSState.h"
|
|
|
|
#include "GSCapture.h"
|
|
|
|
|
2009-05-22 23:23:38 +00:00
|
|
|
class GSRenderer : public GSState
|
2009-02-09 21:15:56 +00:00
|
|
|
{
|
2009-05-22 23:23:38 +00:00
|
|
|
GSCapture m_capture;
|
2017-05-26 15:26:46 +00:00
|
|
|
std::string m_snapshot;
|
2009-05-22 23:23:38 +00:00
|
|
|
int m_shader;
|
|
|
|
|
|
|
|
bool Merge(int field);
|
|
|
|
|
2012-01-06 07:20:37 +00:00
|
|
|
bool m_shift_key;
|
|
|
|
bool m_control_key;
|
|
|
|
|
2009-05-22 23:23:38 +00:00
|
|
|
protected:
|
2020-05-11 16:12:24 +00:00
|
|
|
int m_dithering;
|
2009-02-09 21:15:56 +00:00
|
|
|
int m_interlace;
|
|
|
|
int m_aspectratio;
|
2017-05-21 20:14:34 +00:00
|
|
|
int m_vsync;
|
2009-03-09 01:42:56 +00:00
|
|
|
bool m_aa1;
|
2014-01-17 10:17:24 +00:00
|
|
|
bool m_shaderfx;
|
2011-07-25 11:16:01 +00:00
|
|
|
bool m_fxaa;
|
2012-02-29 00:29:29 +00:00
|
|
|
bool m_shadeboost;
|
2015-06-17 18:02:03 +00:00
|
|
|
bool m_texture_shuffle;
|
2016-06-18 07:37:08 +00:00
|
|
|
GSVector2i m_real_size;
|
2009-02-09 21:15:56 +00:00
|
|
|
|
2016-03-19 11:37:25 +00:00
|
|
|
virtual GSTexture* GetOutput(int i, int& y_offset) = 0;
|
2016-10-09 12:46:55 +00:00
|
|
|
virtual GSTexture* GetFeedbackOutput() { return nullptr; }
|
2009-02-09 21:15:56 +00:00
|
|
|
|
2009-05-18 11:08:04 +00:00
|
|
|
public:
|
2017-02-22 21:02:34 +00:00
|
|
|
std::shared_ptr<GSWnd> m_wnd;
|
2009-05-22 01:22:52 +00:00
|
|
|
GSDevice* m_dev;
|
2009-02-09 21:15:56 +00:00
|
|
|
|
|
|
|
public:
|
2012-01-19 04:53:36 +00:00
|
|
|
GSRenderer();
|
2009-05-22 01:22:52 +00:00
|
|
|
virtual ~GSRenderer();
|
2009-02-09 21:15:56 +00:00
|
|
|
|
2009-09-17 07:40:38 +00:00
|
|
|
virtual bool CreateDevice(GSDevice* dev);
|
2011-02-19 03:36:30 +00:00
|
|
|
virtual void ResetDevice();
|
2009-05-22 01:22:52 +00:00
|
|
|
virtual void VSync(int field);
|
2017-05-26 15:26:46 +00:00
|
|
|
virtual bool MakeSnapshot(const std::string& path);
|
2010-06-24 20:25:33 +00:00
|
|
|
virtual void KeyEvent(GSKeyEventData* e);
|
2011-02-19 03:36:30 +00:00
|
|
|
virtual bool CanUpscale() {return false;}
|
|
|
|
virtual int GetUpscaleMultiplier() {return 1;}
|
2016-06-26 06:03:16 +00:00
|
|
|
virtual GSVector2i GetCustomResolution() {return GSVector2i(0,0);}
|
2016-06-18 07:37:08 +00:00
|
|
|
GSVector2i GetInternalResolution();
|
2011-02-19 03:36:30 +00:00
|
|
|
void SetAspectRatio(int aspect) {m_aspectratio = aspect;}
|
2017-05-21 20:14:34 +00:00
|
|
|
void SetVSync(int vsync);
|
2009-10-31 01:06:23 +00:00
|
|
|
|
2011-08-30 07:11:36 +00:00
|
|
|
virtual bool BeginCapture();
|
2010-06-24 20:25:33 +00:00
|
|
|
virtual void EndCapture();
|
|
|
|
|
2016-05-05 14:43:02 +00:00
|
|
|
void PurgePool();
|
|
|
|
|
Avih (of Firefox plugin "Smoothwheel" fame ;) ) worked on bringing back that extended GSdx information we lost in the merge to the new WX Gui.
Here's his changelog:
GSdx, PCSX2: Fixed broken GS info at the title bar
* If the plugin doesn't support the API, PCSX2 will display only the image mode (progressive/interlaced field/frame), NON i18n!
* If the plugin does support the API, PCSX2 will not display the image mode, and instead display the info from the plugin
* GSdx now properly sends title info: resolution, image mode, deinterlace mode (weave - bff, etc)
* To enable the full GSdx title info as it used to work before it got broken: uncomment //#define GSTITLEINFO_API_FORCE_VERBOSE at GS.h of GSdx.
NOTE: When using an older pcsx2.exe with newer GS plugin, the title would contain duplicate image mode info. All other combos work fine.
* PCSX2 still displays the performance info, etc in the title bar.
Thanks a bunch for bringing this information back, Avih! :)
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4070 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-12-02 22:48:56 +00:00
|
|
|
public:
|
2015-03-03 17:29:21 +00:00
|
|
|
std::mutex m_pGSsetTitle_Crit;
|
2011-02-19 03:36:30 +00:00
|
|
|
|
Avih (of Firefox plugin "Smoothwheel" fame ;) ) worked on bringing back that extended GSdx information we lost in the merge to the new WX Gui.
Here's his changelog:
GSdx, PCSX2: Fixed broken GS info at the title bar
* If the plugin doesn't support the API, PCSX2 will display only the image mode (progressive/interlaced field/frame), NON i18n!
* If the plugin does support the API, PCSX2 will not display the image mode, and instead display the info from the plugin
* GSdx now properly sends title info: resolution, image mode, deinterlace mode (weave - bff, etc)
* To enable the full GSdx title info as it used to work before it got broken: uncomment //#define GSTITLEINFO_API_FORCE_VERBOSE at GS.h of GSdx.
NOTE: When using an older pcsx2.exe with newer GS plugin, the title would contain duplicate image mode info. All other combos work fine.
* PCSX2 still displays the performance info, etc in the title bar.
Thanks a bunch for bringing this information back, Avih! :)
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4070 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-12-02 22:48:56 +00:00
|
|
|
char m_GStitleInfoBuffer[128];
|
2013-01-04 11:41:51 +00:00
|
|
|
};
|