From 3a065a435660101ea8506f5bf9a6b3af57be6691 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 13 Jul 2019 14:38:51 +0200 Subject: [PATCH] POLY_DEBUG flag --- drawing.cpp | 3 +++ hyper.h | 1 + 2 files changed, 4 insertions(+) diff --git a/drawing.cpp b/drawing.cpp index 7588f4d7..7ebf0fd2 100644 --- a/drawing.cpp +++ b/drawing.cpp @@ -786,7 +786,10 @@ ld get_width(dqi_poly* p) { return linewidthat(tC0(p->V)) * p->linewidth; } +void debug_this() { } + void dqi_poly::draw() { + if(flags & POLY_DEBUG) debug_this(); dynamicval bs(hr::band_shift, band_shift); if(!hyperbolic && among(pmodel, mdPolygonal, mdPolynomial)) { diff --git a/hyper.h b/hyper.h index 9c40b52d..cb85c79f 100644 --- a/hyper.h +++ b/hyper.h @@ -5497,6 +5497,7 @@ static const int POLY_FORCE_INVERTED = (1<<20); // force inverted static const int POLY_ALWAYS_IN = (1<<21); // always draw this static const int POLY_TRIANGLES = (1<<22); // made of TRIANGLES, not TRIANGLE_FAN static const int POLY_INTENSE = (1<<23); // extra intense colors +static const int POLY_DEBUG = (1<<24); // debug this shape void pregen(); extern vector currentlands;