1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-26 01:50:36 +00:00

queuecurve_reuse

This commit is contained in:
Zeno Rogue 2023-08-15 14:28:38 +02:00
parent e22c34b343
commit f3a0855df2

View File

@ -2766,9 +2766,14 @@ EX void curvepoint_first() {
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);
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);
return res;
}