MCPcopy Create free account
hub / github.com/Wemino/MarkerPatch / EstimateTriangleCount

Method EstimateTriangleCount

include/imgui/imgui_draw.cpp:1858–1858  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1856struct ImTriangulator
1857{
1858 static int EstimateTriangleCount(int points_count) { return (points_count < 3) ? 0 : points_count - 2; }
1859 static int EstimateScratchBufferSize(int points_count) { return sizeof(ImTriangulatorNode) * points_count + sizeof(ImTriangulatorNode*) * points_count * 2; }
1860
1861 void Init(const ImVec2* points, int points_count, void* scratch_buffer);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected