Add BitmapCanvasPipeline, more CgxViewer updates

This commit is contained in:
Justin Scofield
2023-08-02 12:53:05 -04:00
parent d51bb7b3d0
commit 7b2e017bb3
17 changed files with 237 additions and 206 deletions

View File

@@ -129,7 +129,7 @@ void Room::LoadRoomGraphics(uchar entrance_blockset) {
auto newPdata = rom_.GetGraphicsBuffer();
uchar* sheetsData = current_graphics_.GetData();
uchar* sheetsData = current_graphics_.data();
// Into "room gfx16" 16 of them
int sheetPos = 0;
@@ -159,7 +159,7 @@ void Room::LoadAnimatedGraphics() {
auto newPdata = rom_.GetGraphicsBuffer();
uchar* sheetsData = current_graphics_.GetData();
uchar* sheetsData = current_graphics_.data();
int data = 0;
while (data < 512) {
uchar mapByte = newPdata[data + (92 * 2048) + (512 * animated_frame)];

View File

@@ -42,7 +42,7 @@ void TitleScreen::BuildTileset() {
staticgfx[15] = 112;
// Loaded gfx for the current screen (empty at this point)
uchar* currentmapgfx8Data = tiles8Bitmap.GetData();
uchar* currentmapgfx8Data = tiles8Bitmap.data();
// All gfx of the game pack of 2048 bytes (4bpp)
uchar* allgfxData = nullptr; // rom_.GetMasterGraphicsBin();