1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-29 08:33:25 +00:00

fixup to remove kind: rogueviz.h was not commited

This commit is contained in:
Zeno Rogue 2020-03-29 15:37:26 +02:00
parent 133bbe5b93
commit 0c47c909ea

View File

@ -7,14 +7,23 @@
namespace rogueviz { namespace rogueviz {
using namespace hr; using namespace hr;
enum eVizkind { kNONE, kAnyGraph, kTree, kSpiral, kSAG, kCollatz, kFullNet, kKohonen, kFlocking }; inline void *vizid;
extern eVizkind kind;
constexpr flagtype RV_GRAPH = 1;
constexpr flagtype RV_WHICHWEIGHT = 2; // sag
constexpr flagtype RV_AUTO_MAXWEIGHT = 4; // sag
constexpr flagtype RV_COMPRESS_LABELS = 8; // do not display some labels
constexpr flagtype RV_COLOR_TREE = 16; // color vertex together with tree parents
constexpr flagtype RV_HAVE_WEIGHT = 32; // edges have weights
constexpr flagtype RV_INVERSE_WEIGHT = 64; // edit weight, not 1/weight
inline flagtype vizflags;
string weight_label;
extern bool on;
void drawExtra(); void drawExtra();
void close(); void close();
void init(); void init(void *vizid, flagtype flags);
struct edgetype { struct edgetype {
double visible_from; double visible_from;
@ -89,7 +98,6 @@ namespace rogueviz {
inline hookset<void(vertexdata&, cell*, shmup::monster*, int)> *hooks_drawvertex; inline hookset<void(vertexdata&, cell*, shmup::monster*, int)> *hooks_drawvertex;
void readcolor(const string& cfname); void readcolor(const string& cfname);
extern bool on;
void close(); void close();
extern bool showlabels; extern bool showlabels;