1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-01-23 07:27:07 +00:00

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

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;