mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
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:
parent
de1642c33e
commit
2df2cb5c15
8 changed files with 287 additions and 87 deletions
|
|
@ -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
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue