start to test the implementation of tilerenderer

This commit is contained in:
Clément Le Bihan
2021-05-24 00:44:18 +02:00
parent 4024b51c9f
commit effd70cf1e
5 changed files with 29 additions and 15 deletions

View File

@@ -9,9 +9,9 @@
#include <QMouseEvent>
#include <array>
#include "PPU/PPU.hpp"
#include "ClosableWindow.hpp"
#include "Debugger/ClosableWindow.hpp"
#include "Renderer/QtRenderer/QtSFML.hpp"
#include "ui/ui_tileView.h"
#include "../../ui/ui_tileView.h"
#include "Ram/Ram.hpp"
@@ -24,13 +24,14 @@ namespace ComSquare::Debugger
//! @brief cgram to access the colors
std::shared_ptr<Ram::Ram> _cgram;
//! @brief The bpp to use while rendering
int _bpp,
int _bpp;
//! @brief The palette number to use while rendering
int _palette;
public:
//! @brief internal buffer
std::array<std::array<uint32_t, 500>, 1024> buffer;
std::array<std::array<uint32_t, 1024>, 1024> buffer;
void setPalette(int palette);
void setCgram(std::shared_ptr<Ram::Ram> ram);
void setBpp(int bpp);
void setRam(std::shared_ptr<Ram::Ram> ram);
uint8_t getPixelReferenceFromTileRow(uint16_t tileRowAddress, uint8_t pixelIndex);