summaryrefslogtreecommitdiff
path: root/lib/nes/common
diff options
context:
space:
mode:
authorHannes Schulze <haschu0103@outlook.de>2025-01-31 23:24:45 +0100
committerHannes Schulze <haschu0103@outlook.de>2025-01-31 23:24:45 +0100
commitcd8ae0e4f628bd491fcaf1dd4778bc283d619065 (patch)
treedea35210e2bfe21182cfec76511a84de9a23a2fa /lib/nes/common
parent307e07d6513f9524b7fcab5134494bd175465cd1 (diff)
implement renderer
Diffstat (limited to 'lib/nes/common')
-rw-r--r--lib/nes/common/display.hh11
1 files changed, 0 insertions, 11 deletions
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;