mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-11 18:00:34 +00:00
enqueue_c
This commit is contained in:
parent
9d292e59fc
commit
b6ecc15e1a
@ -1943,6 +1943,13 @@ EX namespace dq {
|
|||||||
}
|
}
|
||||||
|
|
||||||
EX queue<tuple<cell*, transmatrix, ld>> drawqueue_c;
|
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) {
|
EX void enqueue_by_matrix_c(cell *c, const transmatrix& T) {
|
||||||
if(!c) return;
|
if(!c) return;
|
||||||
|
Loading…
Reference in New Issue
Block a user