MCPcopy Create free account
hub / github.com/cinder/Cinder / ShadeVertsTransformPos

Method ShadeVertsTransformPos

src/imgui/imgui_draw.cpp:2393–2399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2391}
2392
2393void ImGui::ShadeVertsTransformPos(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, const ImVec2& pivot_in, float cos_a, float sin_a, const ImVec2& pivot_out)
2394{
2395 ImDrawVert* vert_start = draw_list->VtxBuffer.Data + vert_start_idx;
2396 ImDrawVert* vert_end = draw_list->VtxBuffer.Data + vert_end_idx;
2397 for (ImDrawVert* vertex = vert_start; vertex < vert_end; ++vertex)
2398 vertex->pos = ImRotate(vertex->pos- pivot_in, cos_a, sin_a) + pivot_out;
2399}
2400
2401//-----------------------------------------------------------------------------
2402// [SECTION] ImFontConfig

Callers

nothing calls this directly

Calls 1

ImRotateFunction · 0.85

Tested by

no test coverage detected