starting the renderMainandSubScreen fct

This commit is contained in:
Clément Le Bihan
2020-05-25 23:56:18 +02:00
parent dac3a52eff
commit ce4f231583
4 changed files with 76 additions and 10 deletions
+4 -3
View File
@@ -22,7 +22,6 @@ namespace ComSquare::PPU
int _bpp;
bool _directColor;
bool _highRes;
bool _priority;
uint16_t _TileMapStartAddress;
uint16_t _tileSetAddress;
@@ -39,8 +38,10 @@ namespace ComSquare::PPU
//! @brief draw a tilemap 32x32 starting at baseAddress
void drawBasicTileMap(uint16_t baseAddress, Vector2<int> offset);
public:
Vector2<int> _backgroundSize;
std::array<std::array<uint32_t, 1024>, 1024> _buffer;
bool priority;
int bgNumber;
Vector2<int> backgroundSize;
std::array<std::array<uint32_t, 1024>, 1024> buffer;
Background(ComSquare::PPU::PPU &_ppu, int bgNumber, bool priority);
//! @brief Render a background on the screen
void renderBackground(void);