rsx::thread moved from rsx2 branch

TODO: cellResc module & RsxDebugger disabled, DX12 renderer not compilable
This commit is contained in:
DH 2015-10-04 01:45:26 +03:00
parent a7262d34f0
commit 1e7ded2163
33 changed files with 8324 additions and 6803 deletions

View file

@ -21,49 +21,45 @@ GLGSFrame::GLGSFrame()
canvas->Bind(wxEVT_LEFT_DCLICK, &GSFrame::OnLeftDclick, this);
}
GLGSFrame::~GLGSFrame()
{
}
void GLGSFrame::Close()
void GLGSFrame::close()
{
GSFrame::Close();
}
bool GLGSFrame::IsShown()
bool GLGSFrame::shown()
{
return GSFrame::IsShown();
}
void GLGSFrame::Hide()
void GLGSFrame::hide()
{
GSFrame::Hide();
}
void GLGSFrame::Show()
void GLGSFrame::show()
{
GSFrame::Show();
}
void* GLGSFrame::GetNewContext()
void* GLGSFrame::make_context()
{
return new wxGLContext(GetCanvas());
}
void GLGSFrame::SetCurrent(void* ctx)
void GLGSFrame::set_current(draw_context_t ctx)
{
GetCanvas()->SetCurrent(*(wxGLContext*)ctx);
GetCanvas()->SetCurrent(*(wxGLContext*)ctx.get());
}
void GLGSFrame::DeleteContext(void* ctx)
void GLGSFrame::delete_context(void* ctx)
{
delete (wxGLContext*)ctx;
}
void GLGSFrame::Flip(void* context)
void GLGSFrame::flip(draw_context_t context)
{
if (!canvas) return;
canvas->SetCurrent(*(wxGLContext*)context);
canvas->SetCurrent(*(wxGLContext*)context.get());
static Timer fps_t;
canvas->SwapBuffers();
@ -80,6 +76,12 @@ void GLGSFrame::Flip(void* context)
}
}
size2i GLGSFrame::client_size()
{
wxSize size = GetClientSize();
return{ size.GetWidth(), size.GetHeight() };
}
void GLGSFrame::OnSize(wxSizeEvent& event)
{
if (canvas) canvas->SetSize(GetClientSize());