summaryrefslogtreecommitdiff
path: root/src/nes/display.hh
diff options
context:
space:
mode:
authorHannes Schulze <haschu0103@outlook.de>2025-01-23 22:02:11 +0100
committerHannes Schulze <haschu0103@outlook.de>2025-01-23 22:02:11 +0100
commitb1d1573702f21e3104606d6ade5f5d39ec86a33a (patch)
treed703be130a5d6f9ff2626313d3380ed34de44dd7 /src/nes/display.hh
parent6512dd599d13035f6a90b2009344e02c488f5aae (diff)
restructure project
Diffstat (limited to 'src/nes/display.hh')
-rw-r--r--src/nes/display.hh33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/nes/display.hh b/src/nes/display.hh
deleted file mode 100644
index 14ccff1..0000000
--- a/src/nes/display.hh
+++ /dev/null
@@ -1,33 +0,0 @@
-#pragma once
-
-namespace nes
-{
- class rgb;
-
- /// Abstraction of the display logic.
- class display
- {
- public:
- static constexpr auto width = unsigned{ 256 };
- static constexpr auto height = unsigned{ 240 };
-
- virtual ~display() = default;
-
- display(display const&) = delete;
- display(display&&) = delete;
- auto operator=(display const&) -> display& = delete;
- auto operator=(display&&) -> display& = delete;
-
- /// Switch between front and back buffers.
- virtual auto switch_buffers() -> void = 0;
- /// Update the pixel at the given position in the back buffer.
- 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 color) -> void;
-
- protected:
- explicit display() = default;
- };
-} // namespace nes \ No newline at end of file