enqueue_c

This commit is contained in:
Zeno Rogue 2020-04-05 10:55:40 +02:00
parent 9d292e59fc
commit b6ecc15e1a
1 changed files with 7 additions and 0 deletions

View File

@ -1943,6 +1943,13 @@ EX namespace dq {
}
EX queue<tuple<cell*, transmatrix, ld>> drawqueue_c;
EX set<cell*> visited_c;
EX void enqueue_c(cell *c, const transmatrix& T) {
if(!c || visited_c.count(c)) { return; }
visited_c.insert(c);
drawqueue_c.emplace(c, T, band_shift);
}
EX void enqueue_by_matrix_c(cell *c, const transmatrix& T) {
if(!c) return;