diff options
author | David Haywood <davidhaywood@users.noreply.github.com> | 2017-05-23 23:52:56 +0100 |
---|---|---|
committer | David Haywood <davidhaywood@users.noreply.github.com> | 2017-05-23 23:52:56 +0100 |
commit | 9a61271e5215a90d3354f9bdfcb4a98f2ac0d967 (patch) | |
tree | 8cbcf7f41a6f253ee8c53a502f9e503cd604a83d /src/devices/video/ppu2c0x.h | |
parent | 17294fd6ebfe5bf63189b1d6dc3ec5b70c7c2c4f (diff) |
some support for extended sprite addressing used by cybar120
Diffstat (limited to 'src/devices/video/ppu2c0x.h')
-rw-r--r-- | src/devices/video/ppu2c0x.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/devices/video/ppu2c0x.h b/src/devices/video/ppu2c0x.h index b14e3578125..f5de409a343 100644 --- a/src/devices/video/ppu2c0x.h +++ b/src/devices/video/ppu2c0x.h @@ -125,6 +125,7 @@ public: virtual void read_sprite_plane_data(int address); virtual void make_sprite_pixel_data(uint8_t &pixel_data, int flipx); virtual void draw_sprite_pixel(int sprite_xpos, int color, int pixel, uint8_t pixel_data, bitmap_ind16& bitmap); + virtual void read_extra_sprite_bits(int sprite_index); void draw_sprites( uint8_t *line_priority ); void render_scanline(); @@ -216,6 +217,7 @@ protected: // used in rendering uint8_t m_planebuf[2]; int m_scanline; /* scanline count */ + std::unique_ptr<uint8_t[]> m_spriteram; /* sprite ram */ private: static constexpr device_timer_id TIMER_HBLANK = 0; @@ -226,7 +228,6 @@ private: inline void writebyte(offs_t address, uint8_t data); std::unique_ptr<bitmap_ind16> m_bitmap; /* target bitmap */ - std::unique_ptr<uint8_t[]> m_spriteram; /* sprite ram */ std::unique_ptr<pen_t[]> m_colortable; /* color table modified at run time */ std::unique_ptr<pen_t[]> m_colortable_mono; /* monochromatic color table modified at run time */ |