getPalette should work fine

This commit is contained in:
Clément Le Bihan
2021-02-01 17:55:57 +01:00
parent e1f1990402
commit 4802ba0714
4 changed files with 81 additions and 65 deletions
+2 -2
View File
@@ -25,6 +25,7 @@ namespace ComSquare::PPU
#define TILE_PIXEL_HEIGHT 8U
#define TILE_SIZE 8
#define NB_TILE_PER_ROW 16
private:
Vector2<int> _tileMaps;
Vector2<int> _characterSize;
@@ -35,6 +36,7 @@ namespace ComSquare::PPU
uint16_t _tilesetAddress;
bool _priority;
int _bgNumber;
ComSquare::PPU::PPU &_ppu;
std::shared_ptr<Ram::Ram> _vram;
std::shared_ptr<Ram::Ram> _cgram;
@@ -59,8 +61,6 @@ namespace ComSquare::PPU
//! @param offset The rendering offeset in pixels
void drawBasicTileMap(uint16_t baseAddress, Vector2<int> offset);
public:
// TODO getter setter for priority and bgNumber
Vector2<int> backgroundSize;
std::array<std::array<uint32_t, 1024>, 1024> buffer;
Background(ComSquare::PPU::PPU &_ppu, int backGroundNumber, bool hasPriority);