1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00

POLY_DEBUG flag

This commit is contained in:
Zeno Rogue 2019-07-13 14:38:51 +02:00
parent feaeee86f0
commit 3a065a4356
2 changed files with 4 additions and 0 deletions

View File

@ -786,7 +786,10 @@ ld get_width(dqi_poly* p) {
return linewidthat(tC0(p->V)) * p->linewidth; return linewidthat(tC0(p->V)) * p->linewidth;
} }
void debug_this() { }
void dqi_poly::draw() { void dqi_poly::draw() {
if(flags & POLY_DEBUG) debug_this();
dynamicval<ld> bs(hr::band_shift, band_shift); dynamicval<ld> bs(hr::band_shift, band_shift);
if(!hyperbolic && among(pmodel, mdPolygonal, mdPolynomial)) { if(!hyperbolic && among(pmodel, mdPolygonal, mdPolynomial)) {

View File

@ -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_ALWAYS_IN = (1<<21); // always draw this
static const int POLY_TRIANGLES = (1<<22); // made of TRIANGLES, not TRIANGLE_FAN 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_INTENSE = (1<<23); // extra intense colors
static const int POLY_DEBUG = (1<<24); // debug this shape
void pregen(); void pregen();
extern vector<eLand> currentlands; extern vector<eLand> currentlands;