background grid

This commit is contained in:
Justin R. Miller
2014-06-02 11:42:00 -07:00
parent 3f6075711f
commit 1dd3fdfba3
3 changed files with 66 additions and 10 deletions

View File

@@ -57,6 +57,19 @@ size_t Source::getTileCount() const {
return tiles.size();
}
bool Source::viewportTileParsed() {
bool parsed = false;
for (auto &pair : tiles) {
Tile::ID id = pair.first;
if (hasTile(id) == TileData::State::parsed) {
parsed = true;
}
}
return parsed;
}
void Source::drawClippingMasks() {
for (std::pair<const Tile::ID, std::unique_ptr<Tile>> &pair : tiles) {
Tile &tile = *pair.second;