Make Options::tessellation_options public

Closes https://github.com/emilk/egui/issues/644
This commit is contained in:
Emil Ernerfeldt 2021-08-25 21:39:00 +02:00
parent 31a1882997
commit c2d1034af3
2 changed files with 3 additions and 2 deletions

View file

@ -85,7 +85,7 @@ pub struct Options {
pub(crate) style: std::sync::Arc<Style>, pub(crate) style: std::sync::Arc<Style>,
/// Controls the tessellator. /// Controls the tessellator.
pub(crate) tessellation_options: epaint::TessellationOptions, pub tessellation_options: epaint::TessellationOptions,
/// This does not at all change the behavior of egui, /// This does not at all change the behavior of egui,
/// but is a signal to any backend that we want the [`crate::Output::events`] read out loud. /// but is a signal to any backend that we want the [`crate::Output::events`] read out loud.

View file

@ -238,7 +238,8 @@ pub struct TessellationOptions {
/// Size of a pixel in points, e.g. 0.5, or larger if you want more blurry edges. /// Size of a pixel in points, e.g. 0.5, or larger if you want more blurry edges.
pub aa_size: f32, pub aa_size: f32,
/// Anti-aliasing makes shapes appear smoother, but requires more triangles and is therefore slower. /// Anti-aliasing makes shapes appear smoother, but requires more triangles and is therefore slower.
/// By default this is enabled in release builds and disabled in debug builds. /// This setting does not affect text.
/// Default: `true`.
pub anti_alias: bool, pub anti_alias: bool,
/// If `true` (default) cull certain primitives before tessellating them /// If `true` (default) cull certain primitives before tessellating them
pub coarse_tessellation_culling: bool, pub coarse_tessellation_culling: bool,