GPU: More work on OpenGL renderer

This commit is contained in:
Connor McLaughlin
2019-09-13 00:18:13 +10:00
parent 4706a906d5
commit aea7a18ac2
20 changed files with 655 additions and 412 deletions

View File

@ -4,13 +4,13 @@
#include "dma.h"
#include "gpu.h"
System::System()
System::System(HostInterface* host_interface) : m_host_interface(host_interface)
{
m_cpu = std::make_unique<CPU::Core>();
m_bus = std::make_unique<Bus>();
m_dma = std::make_unique<DMA>();
m_gpu = std::make_unique<GPU>();
// m_gpu = GPU::CreateHardwareOpenGLRenderer();
// m_gpu = std::make_unique<GPU>();
m_gpu = GPU::CreateHardwareOpenGLRenderer();
}
System::~System() = default;
@ -26,7 +26,7 @@ bool System::Initialize()
if (!m_dma->Initialize(m_bus.get(), m_gpu.get()))
return false;
if (!m_gpu->Initialize(m_bus.get(), m_dma.get()))
if (!m_gpu->Initialize(this, m_bus.get(), m_dma.get()))
return false;
return true;