mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 06:21:26 +12:00
* replace GetThreadID with std::this_thread.getId() * name all anonymous structs and unions that contain non-trivially constructable objects * made default constructor for big endian type noexcept to make it work with std::atomic * move instantiated specialized template function members ouside of the class definition to comply with the standard * added default instantiation for template parameter "=nullptr" * used the C++11 standardized thread_local instead of the __declspec(thread) * added transitional definitions to bridge the microsoft specific calls (compare and exchange and aligned alloc) * removed cyclic dependency between Emulator->CPUThreadManager->CPUThread->SMutex->Emulator->... * fixed some instances of indentation by space instead of tabs * surrounded some unused code with an #if 0 block to make sure it doesn't compile
48 lines
816 B
C++
48 lines
816 B
C++
#include "stdafx.h"
|
|
#include "GSManager.h"
|
|
#include "Null/NullGSRender.h"
|
|
#include "GL/GLGSRender.h"
|
|
|
|
BEGIN_EVENT_TABLE(GSFrame, wxFrame)
|
|
EVT_PAINT(GSFrame::OnPaint)
|
|
EVT_SIZE(GSFrame::OnSize)
|
|
END_EVENT_TABLE()
|
|
|
|
GSManager::GSManager() : m_render(nullptr)
|
|
{
|
|
}
|
|
|
|
void GSManager::Init()
|
|
{
|
|
if(m_render) return;
|
|
|
|
m_info.Init();
|
|
|
|
switch(Ini.GSRenderMode.GetValue())
|
|
{
|
|
default:
|
|
case 0: m_render = new NullGSRender(); break;
|
|
case 1: m_render = new GLGSRender(); break;
|
|
}
|
|
//m_render->Init(GetInfo().outresolution.width, GetInfo().outresolution.height);
|
|
}
|
|
|
|
void GSManager::Close()
|
|
{
|
|
if(m_render)
|
|
{
|
|
m_render->Close();
|
|
delete m_render;
|
|
m_render = nullptr;
|
|
}
|
|
}
|
|
|
|
u8 GSManager::GetState()
|
|
{
|
|
return CELL_VIDEO_OUT_OUTPUT_STATE_ENABLED;
|
|
}
|
|
|
|
u8 GSManager::GetColorSpace()
|
|
{
|
|
return CELL_VIDEO_OUT_COLOR_SPACE_RGB;
|
|
}
|