hyperrogue/rogueviz.h

51 lines
1.0 KiB
C
Raw Normal View History

// See: http://www.roguetemple.com/z/hyper/rogueviz.php
2017-12-01 23:24:07 +00:00
namespace rogueviz {
2017-12-14 01:53:39 +00:00
void init();
2017-12-01 23:24:07 +00:00
struct edgeinfo {
int i, j;
double weight, weight2;
bool visible;
vector<glvertex> prec;
2017-12-01 23:24:07 +00:00
cell *orig;
int lastdraw;
edgeinfo() { visible = true; orig = NULL; lastdraw = -1; }
};
struct colorpair {
int color1, color2;
char shade;
colorpair(int col = 0xC0C0C0FF) { shade = 0; color1 = col; }
};
struct vertexdata {
vector<pair<int, edgeinfo*> > edges;
string name;
colorpair cp;
edgeinfo *virt;
bool special;
int data;
string *info;
shmup::monster *m;
vertexdata() { virt = NULL; m = NULL; info = NULL; special = false; }
};
extern vector<vertexdata> vdata;
2017-12-14 01:53:39 +00:00
void storeall();
2017-12-01 23:24:07 +00:00
namespace anygraph {
extern double R, alpha, T;
extern vector<pair<double, double> > coords;
void fixedges();
void read(string fn, bool subdiv = true, bool doRebase = true, bool doStore = true);
extern int N;
}
extern ld ggamma;
2017-12-14 01:53:39 +00:00
extern bool showlabels;
2017-12-01 23:24:07 +00:00
}