mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-25 23:29:55 -06:00
Refactor the GPU to be object-oriented (#1873)
* Refactor GPU3D to be an object - Who has two thumbs and is the sworn enemy of global state? This guy! * Refactor GPU itself to be an object - Wow, it's used in a lot of places - Also introduce a new `Melon` namespace for a few classes - I expect other classes will be moved into `Melon` over time * Change signature of Renderer3D::SetRenderSettings - Make it noexcept, and its argument const * Remove some stray whitespace
This commit is contained in:

committed by
GitHub

parent
88072a02c5
commit
4558be0d8e
@ -24,10 +24,15 @@
|
||||
#include "Savestate.h"
|
||||
#include "DMA_Timings.h"
|
||||
|
||||
namespace Melon
|
||||
{
|
||||
class GPU;
|
||||
}
|
||||
|
||||
class DMA
|
||||
{
|
||||
public:
|
||||
DMA(u32 cpu, u32 num);
|
||||
DMA(u32 cpu, u32 num, Melon::GPU& gpu);
|
||||
~DMA() = default;
|
||||
|
||||
void Reset();
|
||||
@ -79,6 +84,7 @@ public:
|
||||
u32 Cnt {};
|
||||
|
||||
private:
|
||||
Melon::GPU& GPU;
|
||||
u32 CPU {};
|
||||
u32 Num {};
|
||||
|
||||
|
Reference in New Issue
Block a user