MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / DrawCone

Method DrawCone

Source/Engine/Debug/DebugDraw.cpp:2111–2119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2109}
2110
2111void DebugDraw::DrawCone(const Vector3& position, const Quaternion& orientation, float radius, float angleXY, float angleXZ, const Color& color, float duration, bool depthTest)
2112{
2113 Array<DebugTriangle>* list;
2114 if (depthTest)
2115 list = duration > 0 ? &Context->DebugDrawDepthTest.DefaultTriangles : &Context->DebugDrawDepthTest.OneFrameTriangles;
2116 else
2117 list = duration > 0 ? &Context->DebugDrawDefault.DefaultTriangles : &Context->DebugDrawDefault.OneFrameTriangles;
2118 ::DrawCone(list, position, orientation, radius, angleXY, angleXZ, color, duration);
2119}
2120
2121void DebugDraw::DrawWireCone(const Vector3& position, const Quaternion& orientation, float radius, float angleXY, float angleXZ, const Color& color, float duration, bool depthTest)
2122{

Callers

nothing calls this directly

Calls 1

DrawConeFunction · 0.85

Tested by

no test coverage detected