diff options
| author | Hannes Schulze <haschu0103@outlook.de> | 2025-01-13 22:03:10 +0100 |
|---|---|---|
| committer | Hannes Schulze <haschu0103@outlook.de> | 2025-01-13 22:03:10 +0100 |
| commit | 02f963a4bab95b3a328b6a792c9a7e027ade0e26 (patch) | |
| tree | 70b73691547e756e77eb30f29d7ea16811bae1e3 /src/nes/display.cc | |
| parent | 4366e924e44d4294b9791533486f3ab81317ec71 (diff) | |
implement display
Diffstat (limited to 'src/nes/display.cc')
| -rw-r--r-- | src/nes/display.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/nes/display.cc b/src/nes/display.cc new file mode 100644 index 0000000..4ff1d5f --- /dev/null +++ b/src/nes/display.cc @@ -0,0 +1,16 @@ +#include "nes/display.hh" +#include "nes/util/rgb.hh" + +namespace nes +{ + auto display::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); + } + } + } +} // namespace nes
\ No newline at end of file |
