GTileMap.tiles

auto tiles(Vec2 topLeftViewPoint, Vec2 bottomRightViewPoint, Sz layerId = 0)

Returns a lazy range of Tile values visible within the given view corners on the specified layer. Each tile carries its size, id, and world-space position. Includes one extra tile of padding on the far edges.

auto tiles(Rect viewArea, Sz layerId = 0)

Returns a lazy range of Tile values visible within the given view rectangle on the specified layer.