curvepoint_first function to loop curves automatically

This commit is contained in:
Zeno Rogue 2022-10-11 19:56:56 +02:00
parent 73c689211f
commit 4cdc7db18d
1 changed files with 4 additions and 0 deletions

View File

@ -2627,6 +2627,10 @@ EX void curvepoint(const hyperpoint& H1) {
curvedata.push_back(glhr::pointtogl(H1));
}
EX void curvepoint_first() {
curvedata.push_back(curvedata[curvestart]);
}
EX dqi_poly& queuecurve(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;