mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-27 02:20:36 +00:00
queuecurve_reuse
This commit is contained in:
parent
e22c34b343
commit
f3a0855df2
@ -2766,9 +2766,14 @@ EX void curvepoint_first() {
|
|||||||
curvedata.push_back(curvedata[curvestart]);
|
curvedata.push_back(curvedata[curvestart]);
|
||||||
}
|
}
|
||||||
|
|
||||||
EX dqi_poly& queuecurve(const shiftmatrix& V, color_t linecol, color_t fillcol, PPR prio) {
|
EX dqi_poly& queuecurve_reuse(const shiftmatrix& V, color_t linecol, color_t fillcol, PPR prio) {
|
||||||
auto &res = queuetable(V, curvedata, isize(curvedata)-curvestart, linecol, fillcol, prio);
|
auto &res = queuetable(V, curvedata, isize(curvedata)-curvestart, linecol, fillcol, prio);
|
||||||
res.offset = curvestart;
|
res.offset = curvestart;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
|
EX dqi_poly& queuecurve(const shiftmatrix& V, color_t linecol, color_t fillcol, PPR prio) {
|
||||||
|
auto &res = queuecurve_reuse(V, linecol, fillcol, prio);
|
||||||
curvestart = isize(curvedata);
|
curvestart = isize(curvedata);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user