Started functions for pseudo vram
This commit is contained in:
@@ -345,11 +345,19 @@ void OverworldEditor::DrawTile8Selector() const {
|
||||
|
||||
void OverworldEditor::DrawPseudoVRAM() {
|
||||
if (!vram_loaded_ && rom_.isLoaded()) {
|
||||
for (int tileset_index = 0; tileset_index < 16; tileset_index++) {
|
||||
rom_.GetVRAM().GetTileset(tileset_index);
|
||||
}
|
||||
pseudo_vram_canvas_.Update();
|
||||
rom_.GetVRAM().ChangeGraphicsTileset(
|
||||
gfx::CreateGraphicsSet(0, rom_.GetGraphicsBin()));
|
||||
// for (int tileset_index = 0; tileset_index < 16; tileset_index++) {
|
||||
// rom_.GetVRAM().GetTileset(tileset_index);
|
||||
// }
|
||||
}
|
||||
pseudo_vram_canvas_.DrawBackground();
|
||||
pseudo_vram_canvas_.UpdateContext();
|
||||
pseudo_vram_canvas_.DrawGrid();
|
||||
draw_list->AddImage((void *)rom_.GetVRAM().GetTileset(0).GetTexture(),
|
||||
ImVec2(canvas_p0.x + 2, canvas_p0.y + 2),
|
||||
ImVec2(canvas_p0.x + 256, canvas_p0.y + 64));
|
||||
pseudo_vram_canvas_.DrawOverlay();
|
||||
}
|
||||
|
||||
void OverworldEditor::LoadGraphics() {
|
||||
|
||||
Reference in New Issue
Block a user