| 654 | } |
| 655 | |
| 656 | int ImDrawList::_CalcCircleAutoSegmentCount(float radius) const |
| 657 | { |
| 658 | // Automatic segment count |
| 659 | const int radius_idx = (int)(radius + 0.999999f); // ceil to never reduce accuracy |
| 660 | if (radius_idx >= 0 && radius_idx < IM_COUNTOF(_Data->CircleSegmentCounts)) |
| 661 | return _Data->CircleSegmentCounts[radius_idx]; // Use cached value |
| 662 | else |
| 663 | return IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC(radius, _Data->CircleSegmentMaxError); |
| 664 | } |
| 665 | |
| 666 | // 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) |
| 667 | void ImDrawList::PushClipRect(const ImVec2& cr_min, const ImVec2& cr_max, bool intersect_with_current_clip_rect) |
no outgoing calls
no test coverage detected