mirror of
https://github.com/zoriya/ComSquare.git
synced 2025-12-19 21:55:11 +00:00
start to test the implementation of tilerenderer
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user