Started functions for pseudo vram
This commit is contained in:
@@ -345,11 +345,19 @@ void OverworldEditor::DrawTile8Selector() const {
|
|||||||
|
|
||||||
void OverworldEditor::DrawPseudoVRAM() {
|
void OverworldEditor::DrawPseudoVRAM() {
|
||||||
if (!vram_loaded_ && rom_.isLoaded()) {
|
if (!vram_loaded_ && rom_.isLoaded()) {
|
||||||
for (int tileset_index = 0; tileset_index < 16; tileset_index++) {
|
rom_.GetVRAM().ChangeGraphicsTileset(
|
||||||
rom_.GetVRAM().GetTileset(tileset_index);
|
gfx::CreateGraphicsSet(0, rom_.GetGraphicsBin()));
|
||||||
}
|
// for (int tileset_index = 0; tileset_index < 16; tileset_index++) {
|
||||||
pseudo_vram_canvas_.Update();
|
// 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() {
|
void OverworldEditor::LoadGraphics() {
|
||||||
|
|||||||
@@ -2,6 +2,29 @@
|
|||||||
|
|
||||||
namespace yaze {
|
namespace yaze {
|
||||||
namespace app {
|
namespace app {
|
||||||
namespace gfx {}
|
namespace gfx {
|
||||||
|
|
||||||
|
void pseudo_vram::ChangeGraphicsTileset(
|
||||||
|
const std::vector<Bitmap>& graphics_set) {}
|
||||||
|
|
||||||
|
void pseudo_vram::ChangeGraphicsPalette(const SNESPalette& graphics_pal) {}
|
||||||
|
|
||||||
|
void pseudo_vram::ChangeSpriteTileset(const std::vector<Bitmap>& sprite_set) {}
|
||||||
|
|
||||||
|
void pseudo_vram::ChangeSpritePalette(const SNESPalette& sprite_pal) {}
|
||||||
|
|
||||||
|
std::vector<Bitmap> CreateGraphicsSet(
|
||||||
|
int id, const std::unordered_map<int, Bitmap>& all_graphics) {
|
||||||
|
std::vector<Bitmap> graphics_set;
|
||||||
|
return graphics_set;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<Bitmap> CreateSpriteSet(
|
||||||
|
int id, const std::unordered_map<int, Bitmap>& all_graphics) {
|
||||||
|
std::vector<Bitmap> graphics_set;
|
||||||
|
return graphics_set;
|
||||||
|
}
|
||||||
|
|
||||||
|
} // namespace gfx
|
||||||
} // namespace app
|
} // namespace app
|
||||||
} // namespace yaze
|
} // namespace yaze
|
||||||
Reference in New Issue
Block a user