Add access to vram buffer

This commit is contained in:
Justin Scofield
2022-07-18 20:46:24 -04:00
parent bb3b848698
commit b2f574b6e4

View File

@@ -29,8 +29,10 @@ class pseudo_vram {
void ChangeSpritePalette(const SNESPalette& sprite_pal);
auto GetTileset(int index) const { return m_vram.at(index); }
auto GetGraphicsData() const { return gfx_data_; }
private:
uchar* gfx_data_ = new uchar[(128 * 512) / 2];
std::unordered_map<int, Bitmap> m_vram;
static const uint32_t REAL_VRAM_SIZE = 0x8000;
};