yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::editor::DungeonRenderingHelpers Class Reference

#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)
 

Detailed Description

Definition at line 32 of file dungeon_rendering_helpers.h.

Member Function Documentation

◆ GetTrackDirectionMasksForTrackIndex()

TrackDirectionMasks yaze::editor::DungeonRenderingHelpers::GetTrackDirectionMasksForTrackIndex ( size_t index)
static

◆ GetTrackDirectionMasksForSwitchIndex()

TrackDirectionMasks yaze::editor::DungeonRenderingHelpers::GetTrackDirectionMasksForSwitchIndex ( size_t index)
static

◆ GetTrackDirectionMasksFromConfig()

TrackDirectionMasks yaze::editor::DungeonRenderingHelpers::GetTrackDirectionMasksFromConfig ( uint8_t tile,
const std::vector< uint16_t > & track_tiles,
const std::vector< uint16_t > & track_switches )
static

Definition at line 73 of file dungeon_rendering_helpers.cc.

References GetTrackDirectionMasksForSwitchIndex(), and GetTrackDirectionMasksForTrackIndex().

Referenced by DrawTrackCollisionOverlay().

Here is the call graph for this function:

◆ DrawTrackArrowHead()

void yaze::editor::DungeonRenderingHelpers::DrawTrackArrowHead ( ImDrawList * draw_list,
const ImVec2 & tip,
TrackDir dir,
float size,
ImU32 color )
static

◆ DrawTrackDirectionMask()

void yaze::editor::DungeonRenderingHelpers::DrawTrackDirectionMask ( ImDrawList * draw_list,
const ImVec2 & min,
float tile_size,
uint8_t mask,
ImU32 color )
static

◆ RoomToCanvasCoordinates()

std::pair< int, int > yaze::editor::DungeonRenderingHelpers::RoomToCanvasCoordinates ( int room_x,
int room_y )
static

Definition at line 145 of file dungeon_rendering_helpers.cc.

◆ ScreenToRoomCoordinates()

std::pair< int, int > yaze::editor::DungeonRenderingHelpers::ScreenToRoomCoordinates ( const ImVec2 & screen_pos,
const ImVec2 & zero_point,
float scale )
static

Definition at line 150 of file dungeon_rendering_helpers.cc.

◆ DrawTrackCollisionOverlay()

void yaze::editor::DungeonRenderingHelpers::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

◆ DrawCustomCollisionOverlay()

void yaze::editor::DungeonRenderingHelpers::DrawCustomCollisionOverlay ( ImDrawList * draw_list,
const ImVec2 & canvas_pos,
float scale,
const zelda3::Room & room )
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.

Here is the call graph for this function:

◆ DrawWaterFillOverlay()

void yaze::editor::DungeonRenderingHelpers::DrawWaterFillOverlay ( ImDrawList * draw_list,
const ImVec2 & canvas_pos,
float scale,
const zelda3::Room & room )
static

Definition at line 296 of file dungeon_rendering_helpers.cc.

References yaze::editor::AgentUI::GetTheme(), and yaze::zelda3::Room::water_fill_zone().

Here is the call graph for this function:

◆ DrawCameraQuadrantOverlay()

void yaze::editor::DungeonRenderingHelpers::DrawCameraQuadrantOverlay ( ImDrawList * draw_list,
const ImVec2 & canvas_pos,
float scale,
const zelda3::Room & room )
static

Definition at line 321 of file dungeon_rendering_helpers.cc.

References yaze::editor::AgentUI::GetTheme(), and yaze::zelda3::Room::layout_id().

Here is the call graph for this function:

◆ DrawMinecartSpriteOverlay()

void yaze::editor::DungeonRenderingHelpers::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

◆ DrawTrackGapOverlay()

void yaze::editor::DungeonRenderingHelpers::DrawTrackGapOverlay ( ImDrawList * draw_list,
const ImVec2 & canvas_pos,
float scale,
const zelda3::Room & room,
const CollisionOverlayCache & cache )
static

◆ DrawTrackRouteOverlay()

void yaze::editor::DungeonRenderingHelpers::DrawTrackRouteOverlay ( ImDrawList * draw_list,
const ImVec2 & canvas_pos,
float scale,
const CollisionOverlayCache & cache )
static

Definition at line 414 of file dungeon_rendering_helpers.cc.

References yaze::editor::DungeonRenderingHelpers::CollisionOverlayCache::entries, and yaze::editor::AgentUI::GetTheme().

Here is the call graph for this function:

The documentation for this class was generated from the following files: