diff options
author | Oxore <oxore@protonmail.com> | 2022-10-19 02:28:03 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2022-10-19 02:28:03 +0300 |
commit | eddd0a826b1720c26b0ac5df0269db3982bc8f35 (patch) | |
tree | 94548f986eb190c734315db252e57a79c118031f /vdp.hpp | |
parent | ae9a7aef2f0422f6872e6ae27e4e4e2084d8ce8f (diff) |
Begin implementing VDP rendering
Diffstat (limited to 'vdp.hpp')
-rw-r--r-- | vdp.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -15,9 +15,14 @@ class VDP { void Write(uint32_t offset, enum bitness, uint32_t value); bool Scanline(); // Returns true if display disabled or vblank happened void Reset(); + const uint8_t* GetRenderedBuffer() const { return _rendered_buffer; } const uint32_t base_address; + static constexpr size_t render_height = 224; + static constexpr size_t render_width = 320; + static constexpr size_t render_buffer_size = 320*224*4; + private: struct StatusRegister { bool fifo_not_empty{}; @@ -107,4 +112,5 @@ class VDP { uint8_t _vram[kVRAMSize]{}; uint8_t _cram[kCRAMSize]{}; uint8_t _vsram[kVSRAMSize]{}; + uint8_t _rendered_buffer[render_buffer_size]{}; }; |