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:
parent
feaeee86f0
commit
3a065a4356
@ -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)) {
|
||||||
|
1
hyper.h
1
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_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;
|
||||||
|
Loading…
Reference in New Issue
Block a user