diff options
author | Jesse Talavera-Greenberg <jesse@jesse.tg> | 2023-11-09 15:54:51 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-09 21:54:51 +0100 |
commit | 4558be0d8eb79d276c89392b9410e6edb649db95 (patch) | |
tree | 3e2b37e31b38337adec64c5391e57ddf45af5d23 /src/DSi_NDMA.h | |
parent | 88072a02c523e26390af6bd726608b3e567f996f (diff) |
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
Diffstat (limited to 'src/DSi_NDMA.h')
-rw-r--r-- | src/DSi_NDMA.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/DSi_NDMA.h b/src/DSi_NDMA.h index e3da93d..732bc9d 100644 --- a/src/DSi_NDMA.h +++ b/src/DSi_NDMA.h @@ -22,10 +22,15 @@ #include "types.h" #include "Savestate.h" +namespace Melon +{ +class GPU; +} + class DSi_NDMA { public: - DSi_NDMA(u32 cpu, u32 num); + DSi_NDMA(u32 cpu, u32 num, Melon::GPU& gpu); ~DSi_NDMA(); void Reset(); @@ -73,6 +78,7 @@ public: u32 Cnt; private: + Melon::GPU& GPU; u32 CPU, Num; u32 StartMode; |