diff options
author | lhofhansl <lhofhansl@yahoo.com> | 2016-11-03 19:14:32 -0700 |
---|---|---|
committer | est31 <est31@users.noreply.github.com> | 2016-11-04 03:14:32 +0100 |
commit | f8fd432dca9f84a489cb7033afc4e4eef7cff49d (patch) | |
tree | 11a5f5dc206656c9e2786a4ab6fc98779d8c52f4 /src/clientmap.h | |
parent | bf315c05f17549d37d7b4c4bd7938df0b5b32c5a (diff) | |
download | hax-minetest-server-f8fd432dca9f84a489cb7033afc4e4eef7cff49d.tar.gz hax-minetest-server-f8fd432dca9f84a489cb7033afc4e4eef7cff49d.zip |
Add debug priv, and allow player to display the scene as wire-frame. (#4709)
Diffstat (limited to '')
-rw-r--r-- | src/clientmap.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/clientmap.h b/src/clientmap.h index 396e68f64..8855eecf6 100644 --- a/src/clientmap.h +++ b/src/clientmap.h @@ -32,6 +32,7 @@ struct MapDrawControl range_all(false), wanted_range(0), wanted_max_blocks(0), + show_wireframe(false), blocks_drawn(0), blocks_would_have_drawn(0), farthest_drawn(0) @@ -43,6 +44,8 @@ struct MapDrawControl float wanted_range; // Maximum number of blocks to draw u32 wanted_max_blocks; + // show a wire frame for debugging + bool show_wireframe; // Number of blocks rendered is written here by the renderer u32 blocks_drawn; // Number of blocks that would have been drawn in wanted_range |