yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
overworld_graphics_context.h
Go to the documentation of this file.
1#ifndef YAZE_APP_EDITOR_OVERWORLD_OVERWORLD_GRAPHICS_CONTEXT_H_
2#define YAZE_APP_EDITOR_OVERWORLD_OVERWORLD_GRAPHICS_CONTEXT_H_
3
6namespace yaze::zelda3 {
7class OverworldMap;
8}
9namespace yaze::editor {
10// Uses the selected map's loaded sheet slots and exact raw-index palette.
11absl::StatusOr<GraphicsEditTarget> ResolveOverworldQuadrantTarget(
12 const zelda3::OverworldMap& map, const gfx::Tile16& tile16, int tile16_id,
13 int quadrant, const zelda3::GameData* owner);
14// Opens the requested quadrant first and includes every other editable
15// quadrant, retaining separate palette/flip context for each use.
16absl::StatusOr<GraphicsEditContext> MakeOverworldGraphicsEditContext(
17 const zelda3::OverworldMap& map, const gfx::Tile16& tile16, int tile16_id,
18 int quadrant, const zelda3::GameData* owner);
19} // namespace yaze::editor
20
21#endif // YAZE_APP_EDITOR_OVERWORLD_OVERWORLD_GRAPHICS_CONTEXT_H_
Editors are the view controllers for the application.
absl::StatusOr< GraphicsEditTarget > ResolveOverworldQuadrantTarget(const zelda3::OverworldMap &map, const gfx::Tile16 &tile16, int tile16_id, int quadrant, const zelda3::GameData *owner)
absl::StatusOr< GraphicsEditContext > MakeOverworldGraphicsEditContext(const zelda3::OverworldMap &map, const gfx::Tile16 &tile16, int tile16_id, int quadrant, const zelda3::GameData *owner)
Zelda 3 specific classes and functions.