Jazz2::Tiles::ITileMapLayerOverride class

Draws images in place of the tiles of layers, as the level editor does for a view from far away.

Derived classes

class Jazz2::Editor::TileLod
Draws the tile layers from far away as images instead of tiles.

Constructors, destructors, conversion operators

~ITileMapLayerOverride() defaulted virtual

Public functions

auto OverrideLayer(std::int32_t layerIndex, Vector2f origin, const Rectf& cullingRect, SmallVectorImpl<TileMapLayerImage>& images, SmallVectorImpl<Recti>& tileAreas) -> bool pure virtual
Called for each visible tile layer that is drawn, with where the tile (0, 0) of it is in the level.

Function documentation

bool Jazz2::Tiles::ITileMapLayerOverride::OverrideLayer(std::int32_t layerIndex, Vector2f origin, const Rectf& cullingRect, SmallVectorImpl<TileMapLayerImage>& images, SmallVectorImpl<Recti>& tileAreas) pure virtual

Called for each visible tile layer that is drawn, with where the tile (0, 0) of it is in the level.

Returns true to draw images at the depth of the layer instead of its tiles. The tiles of tileAreas are drawn as usual with them, where there's no image yet — in tiles of the layer from its tile (0, 0), past its size where it repeats, not overlapping any image.