Function addLine
Synopsis
#include <Source/Falcor/Utils/UI/DebugDrawer.h>
void addLine(const float3 &a, const float3 &b)
Description
Adds a line segment
Source
Lines 41-49 in Source/Falcor/Utils/UI/DebugDrawer.cpp. Line 65 in Source/Falcor/Utils/UI/DebugDrawer.h.
void DebugDrawer::addLine(const float3& a, const float3& b)
{
if (mVertexData.capacity() - mVertexData.size() >= 2)
{
mVertexData.push_back({a, mCurrentColor});
mVertexData.push_back({b, mCurrentColor});
mDirty = true;
}
}