Drawable LayerGroup sorting, depth buffer, split view (#1173)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
mwilsnd
2023-05-25 15:32:21 -05:00
committed by Bart Louwers
parent 1c8304a609
commit f63fa49152
17 changed files with 244 additions and 89 deletions

View File

@@ -18,4 +18,16 @@ void RemoveLayerGroupRequest::execute(RenderOrchestrator &orchestrator) {
orchestrator.removeLayerGroup(layerIndex);
}
UpdateLayerGroupIndexRequest::UpdateLayerGroupIndexRequest(std::shared_ptr<TileLayerGroup> tileLayerGroup_,
int32_t newLayerIndex_)
: tileLayerGroup(std::move(tileLayerGroup_)),
newLayerIndex(newLayerIndex_) {}
void UpdateLayerGroupIndexRequest::execute(RenderOrchestrator &orchestrator) {
// Update the index of a tile layer group and indicate to the orchestator that it must rebuild the map of ordered
// layer groups
tileLayerGroup->updateLayerIndex(newLayerIndex);
orchestrator.markLayerGroupOrderDirty();
}
} // namespace mbgl