Add access to vram buffer
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user