Refactor PPU code: remove unused namespaces and clean up includes in PPU files

This commit is contained in:
scawful
2024-12-30 07:50:12 -05:00
parent f8f7d361a7
commit 0e81df57fd
3 changed files with 3 additions and 21 deletions

View File

@@ -12,10 +12,6 @@
namespace yaze {
namespace emu {
namespace video {
using namespace PpuRegisters;
using namespace memory;
class PpuInterface {
public:
@@ -258,7 +254,7 @@ struct BackgroundLayer {
class Ppu : public SharedRom {
public:
// Initializes the PPU with the necessary resources and dependencies
Ppu(memory::Memory& memory, Clock& clock) : memory_(memory), clock_(clock) {}
Ppu(Memory& memory, Clock& clock) : memory_(memory), clock_(clock) {}
// Initialize the frame buffer
void Init() {
@@ -455,9 +451,7 @@ class Ppu : public SharedRom {
std::array<BGVOFS, 4> bgvofs_;
};
} // namespace video
} // namespace emu
} // namespace yaze
#endif // YAZE_APP_EMU_PPU_H
#endif // YAZE_APP_EMU_PPU_H