yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
overworld_view.cc
Go to the documentation of this file.
2
8
9namespace yaze::editor {
10
12 : editor_(editor),
13 ow_map_canvas("OwMap", kOverworldCanvasSize, gui::CanvasGridSize::k64x64),
14 current_gfx_canvas("CurrentGfx", kCurrentGfxCanvasSize,
16 blockset_canvas("OwBlockset", kBlocksetCanvasSize,
18 graphics_bin_canvas("GraphicsBin", kGraphicsBinCanvasSize,
20 scratch_canvas("ScratchSpace", ImVec2(320, 480),
21 gui::CanvasGridSize::k32x32) {}
22
24
26 // Navigation Manager
27 canvas_nav = std::make_unique<CanvasNavigationManager>();
28
29 // Renderer components
30 canvas_renderer = std::make_unique<OverworldCanvasRenderer>(editor_);
31
32 entity_renderer = std::make_unique<OverworldEntityRenderer>(
33 editor_->mutable_overworld(), &ow_map_canvas, &sprite_previews);
34}
35
36} // namespace yaze::editor
Main UI class for editing overworld maps in A Link to the Past.
std::vector< gfx::Bitmap > sprite_previews
std::unique_ptr< OverworldCanvasRenderer > canvas_renderer
std::unique_ptr< CanvasNavigationManager > canvas_nav
std::unique_ptr< OverworldEntityRenderer > entity_renderer
OverworldView(OverworldEditor *editor)
Editors are the view controllers for the application.
constexpr ImVec2 kOverworldCanvasSize(kOverworldMapSize *8, kOverworldMapSize *8)
constexpr ImVec2 kCurrentGfxCanvasSize(0x100+1, 0x10 *0x40+1)
constexpr ImVec2 kBlocksetCanvasSize(0x100+1, 0x4000+1)
constexpr ImVec2 kGraphicsBinCanvasSize(0x100+1, kNumSheetsToLoad *0x40+1)
CanvasGridSize
Definition canvas.h:52