| 397 | //----------------------------------------------------------------------------- |
| 398 | |
| 399 | ImDrawListSharedData::ImDrawListSharedData() |
| 400 | { |
| 401 | memset((void*)this, 0, sizeof(*this)); |
| 402 | InitialFringeScale = 1.0f; |
| 403 | for (int i = 0; i < IM_COUNTOF(ArcFastVtx); i++) |
| 404 | { |
| 405 | const float a = ((float)i * 2 * IM_PI) / (float)IM_COUNTOF(ArcFastVtx); |
| 406 | ArcFastVtx[i] = ImVec2(ImCos(a), ImSin(a)); |
| 407 | } |
| 408 | ArcFastRadiusCutoff = IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC_R(IM_DRAWLIST_ARCFAST_SAMPLE_MAX, CircleSegmentMaxError); |
| 409 | } |
| 410 | |
| 411 | ImDrawListSharedData::~ImDrawListSharedData() |
| 412 | { |