fixing compilation error and some warnings

This commit is contained in:
Clément Le Bihan
2020-05-25 15:58:30 +02:00
parent a012a6b110
commit ca07bf3366
3 changed files with 8 additions and 9 deletions
+3
View File
@@ -9,6 +9,7 @@
#include <array>
#include <vector>
#include "../Models/Vector2.hpp"
#include "../Ram/Ram.hpp"
namespace ComSquare::PPU
{
@@ -24,6 +25,8 @@ namespace ComSquare::PPU
uint16_t _graphicVramAddress;
std::array<std::array<uint32_t, 1024>, 1024> _buffer;
std::shared_ptr<Ram::Ram> vram;
std::shared_ptr<Ram::Ram> cgram;
//! @brief Draw a tile on the screen at x y pos
void drawBgTile(uint16_t data, Vector2<int> pos);
//! @brief Get a palette from the number of the palette (0 - 7)