mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-23 15:36:59 +00:00
curvepoint_first function to loop curves automatically
This commit is contained in:
parent
73c689211f
commit
4cdc7db18d
@ -2627,6 +2627,10 @@ EX void curvepoint(const hyperpoint& H1) {
|
|||||||
curvedata.push_back(glhr::pointtogl(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) {
|
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);
|
auto &res = queuetable(V, curvedata, isize(curvedata)-curvestart, linecol, fillcol, prio);
|
||||||
res.offset = curvestart;
|
res.offset = curvestart;
|
||||||
|
Loading…
Reference in New Issue
Block a user