Refactor PPU code: remove unused namespaces and clean up includes in PPU files
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user