|
| std::pair< int, int > | yaze::editor::dungeon_coords::RoomToCanvas (int room_x, int room_y) |
| | Convert room tile coordinates to canvas pixel coordinates.
|
| |
| std::pair< int, int > | yaze::editor::dungeon_coords::CanvasToRoom (int canvas_x, int canvas_y) |
| | Convert canvas pixel coordinates to room tile coordinates.
|
| |
| std::pair< int, int > | yaze::editor::dungeon_coords::ScreenToCanvas (int screen_x, int screen_y, float scale) |
| | Convert screen coordinates to canvas coordinates (undo scale)
|
| |
| std::pair< int, int > | yaze::editor::dungeon_coords::CanvasToScreen (int canvas_x, int canvas_y, float scale) |
| | Convert canvas coordinates to screen coordinates (apply scale)
|
| |
| bool | yaze::editor::dungeon_coords::IsWithinBounds (int canvas_x, int canvas_y, int margin=0) |
| | Check if coordinates are within room bounds.
|
| |
| std::pair< int, int > | yaze::editor::dungeon_coords::ClampToRoom (int room_x, int room_y) |
| | Clamp room tile coordinates to valid range.
|
| |
| bool | yaze::editor::dungeon_coords::IsValidRoomId (int room_id) |
| | Validate room ID is within valid range.
|
| |
| std::pair< int, int > | yaze::editor::dungeon_coords::RoomIdToGridPosition (int room_id) |
| | Get the grid position (column, row) for a room ID.
|
| |
| uint16_t | yaze::editor::dungeon_coords::CalculateCameraX (int room_id, int local_pixel_x) |
| | Calculate absolute camera X coordinate from room and local position.
|
| |
| uint16_t | yaze::editor::dungeon_coords::CalculateCameraY (int room_id, int local_pixel_y) |
| | Calculate absolute camera Y coordinate from room and local position.
|
| |
| std::pair< uint16_t, uint16_t > | yaze::editor::dungeon_coords::TileToCameraCoords (int room_id, int tile_x, int tile_y) |
| | Calculate camera coordinates from room and tile position.
|
| |
| CameraToLocalResult | yaze::editor::dungeon_coords::CameraToLocalCoords (uint16_t camera_x, uint16_t camera_y) |
| |
| std::pair< uint16_t, uint16_t > | yaze::editor::dungeon_coords::SpriteToCameraCoords (int room_id, int sprite_x, int sprite_y) |
| | Calculate sprite-format coordinates (16-pixel units)
|
| |