#include <dungeon_rendering_helpers.h>
Classes | |
| struct | CollisionOverlayCache |
| struct | CollisionOverlayEntry |
| struct | TrackCollisionConfig |
Static Public Member Functions | |
| static TrackDirectionMasks | GetTrackDirectionMasksForTrackIndex (size_t index) |
| static TrackDirectionMasks | GetTrackDirectionMasksForSwitchIndex (size_t index) |
| static TrackDirectionMasks | GetTrackDirectionMasksFromConfig (uint8_t tile, const std::vector< uint16_t > &track_tiles, const std::vector< uint16_t > &track_switches) |
| static void | DrawTrackArrowHead (ImDrawList *draw_list, const ImVec2 &tip, TrackDir dir, float size, ImU32 color) |
| static void | DrawTrackDirectionMask (ImDrawList *draw_list, const ImVec2 &min, float tile_size, uint8_t mask, ImU32 color) |
| static std::pair< int, int > | RoomToCanvasCoordinates (int room_x, int room_y) |
| static std::pair< int, int > | ScreenToRoomCoordinates (const ImVec2 &screen_pos, const ImVec2 &zero_point, float scale) |
| static void | DrawTrackCollisionOverlay (ImDrawList *draw_list, const ImVec2 &canvas_pos, float scale, const CollisionOverlayCache &cache, const TrackCollisionConfig &config, bool direction_map_enabled, const std::vector< uint16_t > &track_tile_order, const std::vector< uint16_t > &switch_tile_order, bool show_legend) |
| static void | DrawCustomCollisionOverlay (ImDrawList *draw_list, const ImVec2 &canvas_pos, float scale, const zelda3::Room &room) |
| static void | DrawWaterFillOverlay (ImDrawList *draw_list, const ImVec2 &canvas_pos, float scale, const zelda3::Room &room) |
| static void | DrawCameraQuadrantOverlay (ImDrawList *draw_list, const ImVec2 &canvas_pos, float scale, const zelda3::Room &room) |
| static void | DrawMinecartSpriteOverlay (ImDrawList *draw_list, const ImVec2 &canvas_pos, float scale, const zelda3::Room &room, const std::bitset< 256 > &minecart_sprite_ids, const TrackCollisionConfig &config) |
| static void | DrawTrackGapOverlay (ImDrawList *draw_list, const ImVec2 &canvas_pos, float scale, const zelda3::Room &room, const CollisionOverlayCache &cache) |
| static void | DrawTrackRouteOverlay (ImDrawList *draw_list, const ImVec2 &canvas_pos, float scale, const CollisionOverlayCache &cache) |
Definition at line 32 of file dungeon_rendering_helpers.h.
|
static |
Definition at line 16 of file dungeon_rendering_helpers.cc.
References yaze::editor::kTrackDirEast, yaze::editor::kTrackDirNorth, yaze::editor::kTrackDirSouth, and yaze::editor::kTrackDirWest.
Referenced by GetTrackDirectionMasksFromConfig().
|
static |
Definition at line 54 of file dungeon_rendering_helpers.cc.
References yaze::editor::kTrackDirEast, yaze::editor::kTrackDirNorth, yaze::editor::kTrackDirSouth, and yaze::editor::kTrackDirWest.
Referenced by GetTrackDirectionMasksFromConfig().
|
static |
Definition at line 73 of file dungeon_rendering_helpers.cc.
References GetTrackDirectionMasksForSwitchIndex(), and GetTrackDirectionMasksForTrackIndex().
Referenced by DrawTrackCollisionOverlay().

|
static |
Definition at line 91 of file dungeon_rendering_helpers.cc.
References yaze::editor::East, yaze::editor::North, yaze::editor::South, and yaze::editor::West.
Referenced by DrawTrackDirectionMask().
|
static |
Definition at line 115 of file dungeon_rendering_helpers.cc.
References DrawTrackArrowHead(), yaze::editor::East, yaze::editor::kTrackDirEast, yaze::editor::kTrackDirNorth, yaze::editor::kTrackDirSouth, yaze::editor::kTrackDirWest, yaze::editor::North, yaze::editor::South, and yaze::editor::West.
Referenced by DrawTrackCollisionOverlay().

|
static |
Definition at line 145 of file dungeon_rendering_helpers.cc.
|
static |
Definition at line 150 of file dungeon_rendering_helpers.cc.
|
static |
Definition at line 158 of file dungeon_rendering_helpers.cc.
References DrawTrackDirectionMask(), yaze::editor::DungeonRenderingHelpers::CollisionOverlayCache::entries, GetTrackDirectionMasksFromConfig(), yaze::editor::DungeonRenderingHelpers::TrackCollisionConfig::stop_tiles, and yaze::editor::DungeonRenderingHelpers::TrackCollisionConfig::switch_tiles.

|
static |
Definition at line 248 of file dungeon_rendering_helpers.cc.
References yaze::zelda3::Room::custom_collision(), yaze::editor::AgentUI::GetTheme(), and yaze::zelda3::CustomCollisionMap::tiles.

|
static |
Definition at line 296 of file dungeon_rendering_helpers.cc.
References yaze::editor::AgentUI::GetTheme(), and yaze::zelda3::Room::water_fill_zone().

|
static |
Definition at line 321 of file dungeon_rendering_helpers.cc.
References yaze::editor::AgentUI::GetTheme(), and yaze::zelda3::Room::layout_id().

|
static |
Definition at line 337 of file dungeon_rendering_helpers.cc.
References yaze::zelda3::Room::GetSprites(), yaze::editor::AgentUI::GetTheme(), yaze::zelda3::Room::id(), yaze::zelda3::LoadCustomCollisionMap(), yaze::zelda3::Room::rom(), and yaze::editor::DungeonRenderingHelpers::TrackCollisionConfig::stop_tiles.
|
static |
Definition at line 373 of file dungeon_rendering_helpers.cc.
References yaze::editor::DungeonRenderingHelpers::CollisionOverlayCache::entries, yaze::zelda3::DimensionService::Get(), yaze::zelda3::DimensionService::GetDimensions(), yaze::editor::AgentUI::GetTheme(), and yaze::zelda3::Room::GetTileObjects().

|
static |
Definition at line 414 of file dungeon_rendering_helpers.cc.
References yaze::editor::DungeonRenderingHelpers::CollisionOverlayCache::entries, and yaze::editor::AgentUI::GetTheme().
