@@ -7772,6 +7772,7 @@ static void ShowExampleAppCustomRendering(bool* p_open)
7772
7772
float th = (n == 0) ? 1.0f : thickness;
7773
7773
draw_list->AddNgon(ImVec2(x + sz*0.5f, y + sz*0.5f), sz*0.5f, col, ngon_sides, th); x += sz + spacing; // N-gon
7774
7774
draw_list->AddCircle(ImVec2(x + sz*0.5f, y + sz*0.5f), sz*0.5f, col, circle_segments, th); x += sz + spacing; // Circle
7775
+ draw_list->AddEllipse(ImVec2(x + sz*0.5f, y + sz*0.5f), sz*0.5f, sz*0.3f, col, -0.3f, circle_segments, th); x += sz + spacing; // Ellipse
7775
7776
draw_list->AddRect(ImVec2(x, y), ImVec2(x + sz, y + sz), col, 0.0f, ImDrawFlags_None, th); x += sz + spacing; // Square
7776
7777
draw_list->AddRect(ImVec2(x, y), ImVec2(x + sz, y + sz), col, rounding, ImDrawFlags_None, th); x += sz + spacing; // Square with all rounded corners
7777
7778
draw_list->AddRect(ImVec2(x, y), ImVec2(x + sz, y + sz), col, rounding, corners_tl_br, th); x += sz + spacing; // Square with two rounded corners
@@ -7792,8 +7793,9 @@ static void ShowExampleAppCustomRendering(bool* p_open)
7792
7793
x = p.x + 4;
7793
7794
y += sz + spacing;
7794
7795
}
7795
- draw_list->AddNgonFilled (ImVec2 (x + sz * 0 .5f , y + sz * 0 .5f ), sz*0 .5f , col, ngon_sides); x += sz + spacing; // N-gon
7796
- draw_list->AddCircleFilled (ImVec2 (x + sz*0 .5f , y + sz*0 .5f ), sz*0 .5f , col, circle_segments); x += sz + spacing; // Circle
7796
+ draw_list->AddNgonFilled(ImVec2(x + sz * 0.5f, y + sz * 0.5f), sz * 0.5f, col, ngon_sides); x += sz + spacing; // N-gon
7797
+ draw_list->AddCircleFilled(ImVec2(x + sz * 0.5f, y + sz * 0.5f), sz * 0.5f, col, circle_segments); x += sz + spacing; // Circle
7798
+ draw_list->AddEllipseFilled(ImVec2(x + sz * 0.5f, y + sz * 0.5f), sz * 0.5f, sz * 0.3f, col, -0.3f, circle_segments); x += sz + spacing;// Ellipse
7797
7799
draw_list->AddRectFilled(ImVec2(x, y), ImVec2(x + sz, y + sz), col); x += sz + spacing; // Square
7798
7800
draw_list->AddRectFilled(ImVec2(x, y), ImVec2(x + sz, y + sz), col, 10.0f); x += sz + spacing; // Square with all rounded corners
7799
7801
draw_list->AddRectFilled(ImVec2(x, y), ImVec2(x + sz, y + sz), col, 10.0f, corners_tl_br); x += sz + spacing; // Square with two rounded corners
@@ -7804,7 +7806,7 @@ static void ShowExampleAppCustomRendering(bool* p_open)
7804
7806
draw_list->AddRectFilled(ImVec2(x, y), ImVec2(x + 1, y + 1), col); x += sz; // Pixel (faster than AddLine)
7805
7807
draw_list->AddRectFilledMultiColor(ImVec2(x, y), ImVec2(x + sz, y + sz), IM_COL32(0, 0, 0, 255), IM_COL32(255, 0, 0, 255), IM_COL32(255, 255, 0, 255), IM_COL32(0, 255, 0, 255));
7806
7808
7807
- ImGui::Dummy (ImVec2 ((sz + spacing) * 10 .2f , (sz + spacing) * 3 .0f ));
7809
+ ImGui::Dummy(ImVec2((sz + spacing) * 11 .2f, (sz + spacing) * 3.0f));
7808
7810
ImGui::PopItemWidth();
7809
7811
ImGui::EndTabItem();
7810
7812
}
0 commit comments