MCPcopy Create free account
hub / github.com/Aegel5/SimpleSwitcher / ImDrawListSharedData

Method ImDrawListSharedData

imgui_tiny_app/imgui/imgui_draw.cpp:399–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397//-----------------------------------------------------------------------------
398
399ImDrawListSharedData::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
411ImDrawListSharedData::~ImDrawListSharedData()
412{

Callers

nothing calls this directly

Calls 1

ImVec2Function · 0.85

Tested by

no test coverage detected