off mesh connection tool

Adds off mesh connection tool
upgrade functionality to allow setting the direction to be bi-directional
added immediate draw to duDebugDrawtorque so we can draw offmesh connections
This commit is contained in:
marauder2k7 2025-07-24 23:43:35 +01:00
parent de1642c33e
commit 2df2cb5c15
8 changed files with 287 additions and 87 deletions

View file

@ -421,3 +421,25 @@ void duDebugDrawTorque::render(SceneRenderState* state)
}
}
void duDebugDrawTorque::immediateRender()
{
for (U32 i = 0; i < mDrawCache.size(); ++i)
{
const CachedDraw& draw = mDrawCache[i];
GFX->setPrimitiveBuffer(draw.primitiveBuffer);
GFX->setStateBlockByDesc(draw.state);
GFX->setupGenericShaders(GFXDevice::GSColor);
GFX->setVertexBuffer(draw.buffer);
GFX->drawIndexedPrimitive(
draw.primType,
0, // start vertex
0, // min vertex index
draw.vertexCount, // vertex count
0, // start index
draw.primitiveCount // primitive count
);
}
}