Texture-based round corners: Adding style/drawlist flags for rounded corner textures

This commit is contained in:
Ben Carter
2019-11-29 15:35:23 +09:00
committed by ocornut
parent a1efd8fc06
commit 3f671bd282
4 changed files with 20 additions and 4 deletions

View File

@ -6399,6 +6399,7 @@ void ImGui::ShowStyleEditor(ImGuiStyle* ref)
HelpMarker("Faster lines using texture data. Require backend to render with bilinear filtering (not point/nearest filtering).");
ImGui::Checkbox("Anti-aliased fill", &style.AntiAliasedFill);
ImGui::Checkbox("Rounded corner textures", &style.TexturedRoundCorners);
ImGui::PushItemWidth(ImGui::GetFontSize() * 8);
ImGui::DragFloat("Curve Tessellation Tolerance", &style.CurveTessellationTol, 0.02f, 0.10f, 10.0f, "%.2f");
if (style.CurveTessellationTol < 0.10f) style.CurveTessellationTol = 0.10f;