2013-05-05 09:21:30 +00:00
|
|
|
struct Cache {
|
2015-12-06 21:11:41 +00:00
|
|
|
Cache(PPU& self);
|
2010-09-01 13:20:05 +00:00
|
|
|
|
2015-12-06 21:11:41 +00:00
|
|
|
auto tile_2bpp(uint tile) -> uint8*;
|
|
|
|
auto tile_4bpp(uint tile) -> uint8*;
|
|
|
|
auto tile_8bpp(uint tile) -> uint8*;
|
|
|
|
auto tile(uint bpp, uint tile) -> uint8*;
|
2010-09-01 13:20:05 +00:00
|
|
|
|
2015-12-06 21:11:41 +00:00
|
|
|
auto serialize(serializer&) -> void;
|
2010-09-01 13:20:05 +00:00
|
|
|
|
2013-05-05 09:21:30 +00:00
|
|
|
PPU& self;
|
2015-12-06 21:11:41 +00:00
|
|
|
uint8* tiledata[3];
|
|
|
|
uint8* tilevalid[3];
|
|
|
|
|
2010-09-01 13:20:05 +00:00
|
|
|
friend class PPU;
|
|
|
|
};
|