MCPcopy Create free account
hub / github.com/RenderKit/embree / AddLine

Method AddLine

tutorials/common/imgui/imgui_draw.cpp:1373–1380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1371}
1372
1373void ImDrawList::AddLine(const ImVec2& p1, const ImVec2& p2, ImU32 col, float thickness)
1374{
1375 if ((col & IM_COL32_A_MASK) == 0)
1376 return;
1377 PathLineTo(p1 + ImVec2(0.5f, 0.5f));
1378 PathLineTo(p2 + ImVec2(0.5f, 0.5f));
1379 PathStroke(col, 0, thickness);
1380}
1381
1382// p_min = upper-left, p_max = lower-right
1383// Note we don't render 1 pixels sized rectangles properly.

Callers 13

TableEndRowMethod · 0.80
TableDrawBordersMethod · 0.80
EndColumnsMethod · 0.80
DebugNodeTabBarMethod · 0.80
CloseButtonMethod · 0.80
SeparatorExMethod · 0.80
InputTextExMethod · 0.80
PlotExMethod · 0.80

Calls 1

ImVec2Function · 0.85

Tested by

no test coverage detected