2012-11-15 01:39:56 +02:00
|
|
|
#pragma once
|
2015-06-19 18:49:38 +03:00
|
|
|
|
|
|
|
|
struct GSRender;
|
2012-11-15 01:39:56 +02:00
|
|
|
|
|
|
|
|
struct GSInfo
|
|
|
|
|
{
|
2013-06-30 11:46:29 +03:00
|
|
|
struct
|
|
|
|
|
{
|
|
|
|
|
u8 resolutionId;
|
|
|
|
|
u8 scanMode;
|
|
|
|
|
u8 conversion;
|
|
|
|
|
u8 aspect;
|
2014-04-04 09:25:38 -04:00
|
|
|
u8 format;
|
2013-06-30 11:46:29 +03:00
|
|
|
u16 refreshRates;
|
2014-04-04 09:25:38 -04:00
|
|
|
u32 pitch;
|
2013-06-30 11:46:29 +03:00
|
|
|
} mode;
|
2012-11-15 01:39:56 +02:00
|
|
|
|
|
|
|
|
GSInfo()
|
|
|
|
|
{
|
2013-06-30 11:46:29 +03:00
|
|
|
}
|
2012-11-15 01:39:56 +02:00
|
|
|
|
2014-08-23 04:16:54 +04:00
|
|
|
void Init();
|
2012-11-15 01:39:56 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class GSManager
|
|
|
|
|
{
|
|
|
|
|
GSInfo m_info;
|
|
|
|
|
GSRender* m_render;
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
GSManager();
|
|
|
|
|
|
|
|
|
|
void Init();
|
|
|
|
|
void Close();
|
|
|
|
|
|
2014-01-07 09:30:41 +02:00
|
|
|
bool IsInited() const { return m_render != nullptr; }
|
|
|
|
|
|
2012-11-15 01:39:56 +02:00
|
|
|
GSInfo& GetInfo() { return m_info; }
|
2013-06-30 11:46:29 +03:00
|
|
|
GSRender& GetRender() { assert(m_render); return *m_render; }
|
2012-11-15 01:39:56 +02:00
|
|
|
|
|
|
|
|
u8 GetState();
|
|
|
|
|
u8 GetColorSpace();
|
2014-07-11 00:16:19 +10:00
|
|
|
};
|