mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-04 21:10:32 +00:00
duDebugDrawTorque add override
added an override flag to stop detour from setting our depth mask state. This was causing navmesh to draw through other objects when it wasnt meant to Reset our bounds box for each draw cache
This commit is contained in:
parent
e55d3b6f82
commit
5c2ed84b24
3 changed files with 57 additions and 9 deletions
|
|
@ -61,6 +61,13 @@ public:
|
|||
/// Enable/disable Z read.
|
||||
void depthMask(bool state) override;
|
||||
|
||||
/// <summary>
|
||||
/// Enable/disable Z read and overrides any setting that will come from detour.
|
||||
/// </summary>
|
||||
/// <param name="state">Z read state.</param>
|
||||
/// <param name="isOverride">Set to true to override any future changes.</param>
|
||||
void depthMask(bool state, bool isOverride);
|
||||
|
||||
/// Begin drawing primitives.
|
||||
/// @param prim [in] primitive type to draw, one of rcDebugDrawPrimitives.
|
||||
/// @param size [in] size of a primitive, applies to point size and line width only.
|
||||
|
|
@ -127,6 +134,7 @@ private:
|
|||
|
||||
U32 mPrimType;
|
||||
U32 mVertCount;
|
||||
bool mOverrideState;
|
||||
|
||||
void _vertex(const float x, const float y, const float z, unsigned int color);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue