Move all core types into namespaces (#1886)

* Reorganize namespaces

- Most types are now moved into the `melonDS` namespace
- Only good chance to do this for a while, since a big refactor is next

* Fix the build
This commit is contained in:
Jesse Talavera-Greenberg
2023-11-25 12:32:09 -05:00
committed by GitHub
parent 651b0f680c
commit 346dd4006e
178 changed files with 529 additions and 268 deletions

View File

@ -20,10 +20,9 @@
#include "GPU2D.h"
namespace Melon
namespace melonDS
{
class GPU;
}
namespace GPU2D
{
@ -31,14 +30,14 @@ namespace GPU2D
class SoftRenderer : public Renderer2D
{
public:
SoftRenderer(Melon::GPU& gpu);
SoftRenderer(melonDS::GPU& gpu);
~SoftRenderer() override {}
void DrawScanline(u32 line, Unit* unit) override;
void DrawSprites(u32 line, Unit* unit) override;
void VBlankEnd(Unit* unitA, Unit* unitB) override;
private:
Melon::GPU& GPU;
melonDS::GPU& GPU;
alignas(8) u32 BGOBJLine[256*3];
u32* _3DLine;
@ -84,3 +83,5 @@ private:
};
}
}