You need to sign in or sign up before continuing.
Commit e9a8b885 authored by bitplane's avatar bitplane

added drawing debug mesh bounding boxes to CMeshSceneNode

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@694 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 7380f36e
......@@ -137,6 +137,18 @@ void CMeshSceneNode::render()
driver->setMaterial(m);
driver->draw3DBox(Box, video::SColor(0,255,255,255));
}
if ( DebugDataVisible & scene::EDS_BBOX_BUFFERS )
{
video::SMaterial m;
m.Lighting = false;
driver->setMaterial(m);
for (u32 g=0; g<Mesh->getMeshBufferCount(); ++g)
{
driver->draw3DBox(
Mesh->getMeshBuffer(g)->getBoundingBox(),
video::SColor(0,255,255,255));
}
}
if ( DebugDataVisible & scene::EDS_NORMALS )
{
for (u32 g=0; g<Mesh->getMeshBufferCount(); ++g)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment