| 558 | } |
| 559 | |
| 560 | int 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) |
| 571 | void ImDrawList::PushClipRect(const ImVec2& cr_min, const ImVec2& cr_max, bool intersect_with_current_clip_rect) |
no outgoing calls
no test coverage detected