From cd8ae0e4f628bd491fcaf1dd4778bc283d619065 Mon Sep 17 00:00:00 2001 From: Hannes Schulze Date: Fri, 31 Jan 2025 23:24:45 +0100 Subject: implement renderer --- lib/nes/common/display.hh | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'lib/nes/common/display.hh') diff --git a/lib/nes/common/display.hh b/lib/nes/common/display.hh index ca78a85..85af915 100644 --- a/lib/nes/common/display.hh +++ b/lib/nes/common/display.hh @@ -26,17 +26,6 @@ namespace nes virtual auto set(unsigned x, unsigned y, rgb value) -> void = 0; /// Load the pixel value at the given position in the back buffer. virtual auto get(unsigned x, unsigned y) const -> rgb = 0; - /// Clear the entire back buffer with a color. - virtual auto clear(rgb const color) -> void - { - for (auto y = unsigned{ 0 }; y < height; ++y) - { - for (auto x = unsigned{ 0 }; x < width; ++x) - { - set(x, y, color); - } - } - } protected: explicit display() = default; -- cgit v1.3.1