1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Add debug mode that shows mesh buffer bounding boxes

This commit is contained in:
sfan5 2025-01-02 11:18:37 +01:00
parent 9554e3d43a
commit 4e2ca05f08
8 changed files with 70 additions and 46 deletions

View file

@ -403,14 +403,14 @@ public:
their geometry because it is their only reason for existence,
for example the OctreeSceneNode.
\param state The culling state to be used. Check E_CULLING_TYPE for possible values.*/
void setAutomaticCulling(u32 state)
void setAutomaticCulling(u16 state)
{
AutomaticCullingState = state;
}
//! Gets the automatic culling state.
/** \return The automatic culling state. */
u32 getAutomaticCulling() const
u16 getAutomaticCulling() const
{
return AutomaticCullingState;
}
@ -419,7 +419,7 @@ public:
/** A bitwise OR of the types from @ref irr::scene::E_DEBUG_SCENE_TYPE.
Please note that not all scene nodes support all debug data types.
\param state The debug data visibility state to be used. */
virtual void setDebugDataVisible(u32 state)
virtual void setDebugDataVisible(u16 state)
{
DebugDataVisible = state;
}
@ -427,7 +427,7 @@ public:
//! Returns if debug data like bounding boxes are drawn.
/** \return A bitwise OR of the debug data values from
@ref irr::scene::E_DEBUG_SCENE_TYPE that are currently visible. */
u32 isDebugDataVisible() const
u16 isDebugDataVisible() const
{
return DebugDataVisible;
}
@ -581,10 +581,10 @@ protected:
s32 ID;
//! Automatic culling state
u32 AutomaticCullingState;
u16 AutomaticCullingState;
//! Flag if debug data should be drawn, such as Bounding Boxes.
u32 DebugDataVisible;
u16 DebugDataVisible;
//! Is the node visible?
bool IsVisible;