MCPcopy Create free account
hub / github.com/Aegel5/SimpleSwitcher / BuildNodes

Method BuildNodes

imgui_tiny_app/imgui/imgui_draw.cpp:1882–1894  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1880}
1881
1882void ImTriangulator::BuildNodes(const ImVec2* points, int points_count)
1883{
1884 for (int i = 0; i < points_count; i++)
1885 {
1886 _Nodes[i].Type = ImTriangulatorNodeType_Convex;
1887 _Nodes[i].Index = i;
1888 _Nodes[i].Pos = points[i];
1889 _Nodes[i].Next = _Nodes + i + 1;
1890 _Nodes[i].Prev = _Nodes + i - 1;
1891 }
1892 _Nodes[0].Prev = _Nodes + points_count - 1;
1893 _Nodes[points_count - 1].Next = _Nodes;
1894}
1895
1896void ImTriangulator::BuildReflexes()
1897{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected