1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-06 08:43:02 +00:00

more rearrangement

This commit is contained in:
Zeno Rogue
2017-10-29 12:46:57 +01:00
parent 8639a5b5e9
commit 00c9238bd6
11 changed files with 139 additions and 118 deletions

View File

@@ -28,55 +28,6 @@ struct hpcshape {
hpcshape *last = NULL;
#ifndef GL
typedef float GLfloat;
#endif
struct qpoly {
transmatrix V;
GLfloat *tab;
int curveindex;
int cnt;
int outline;
double minwidth;
};
struct qline {
hyperpoint H1, H2;
int prf;
double width;
};
#define MAXQCHR 40
struct qchr {
char str[MAXQCHR];
int x, y, shift, size, frame;
int align;
};
struct qcir {
int x, y, size;
};
enum eKind { pkPoly, pkLine, pkString, pkCircle, pkShape, pkResetModel };
struct polytodraw {
eKind kind;
int prio, col;
union {
qpoly poly;
qline line;
qchr chr;
qcir cir;
double dvalue;
} u;
#if CAP_ROGUEVIZ
string* info;
polytodraw() { info = NULL; }
#endif
};
vector<polytodraw> ptds;
polytodraw& lastptd() { return ptds[size(ptds)-1]; }