mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add debug priv, and allow player to display the scene as wire-frame. (#4709)
This commit is contained in:
parent
bf315c05f1
commit
f8fd432dca
4 changed files with 29 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue