MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / _CalcCircleAutoSegmentCount

Method _CalcCircleAutoSegmentCount

KBotExt/imgui/imgui_draw.cpp:560–568  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

558}
559
560int ImDrawList::_CalcCircleAutoSegmentCount(float radius) const
561{
562 // Automatic segment count
563 const int radius_idx = (int)(radius + 0.999999f); // ceil to never reduce accuracy
564 if (radius_idx >= 0 && radius_idx < IM_ARRAYSIZE(_Data->CircleSegmentCounts))
565 return _Data->CircleSegmentCounts[radius_idx]; // Use cached value
566 else
567 return IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC(radius, _Data->CircleSegmentMaxError);
568}
569
570// Render-level scissoring. This is passed down to your render function but not used for CPU-side coarse clipping. Prefer using higher-level ImGui::PushClipRect() to affect logic (hit-testing and widget culling)
571void ImDrawList::PushClipRect(const ImVec2& cr_min, const ImVec2& cr_max, bool intersect_with_current_clip_rect)

Callers 2

RadioButtonMethod · 0.80
ColorPicker4Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected