build render order array once instead of recursing through lots of different objects

This commit is contained in:
Konstantin Käfer
2015-04-22 13:47:51 +02:00
parent c6be708623
commit 5f496d8f0c
11 changed files with 105 additions and 106 deletions

View File

@@ -23,10 +23,10 @@ void RasterTileData::parse() {
}
}
void RasterTileData::render(Painter &painter, const StyleLayer &layer_desc, const mat4 &matrix) {
bucket.render(painter, layer_desc, id, matrix);
}
bool RasterTileData::hasData(StyleLayer const& /*layer_desc*/) const {
return bucket.hasData();
Bucket* RasterTileData::getBucket(StyleLayer const&) {
if (bucket.hasData()) {
return &bucket;
} else {
return nullptr;
}
}