Make Options::tessellation_options public
Closes https://github.com/emilk/egui/issues/644
This commit is contained in:
parent
31a1882997
commit
c2d1034af3
2 changed files with 3 additions and 2 deletions
|
@ -85,7 +85,7 @@ pub struct Options {
|
|||
pub(crate) style: std::sync::Arc<Style>,
|
||||
|
||||
/// Controls the tessellator.
|
||||
pub(crate) tessellation_options: epaint::TessellationOptions,
|
||||
pub tessellation_options: epaint::TessellationOptions,
|
||||
|
||||
/// 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.
|
||||
|
|
|
@ -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.
|
||||
pub aa_size: f32,
|
||||
/// 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,
|
||||
/// If `true` (default) cull certain primitives before tessellating them
|
||||
pub coarse_tessellation_culling: bool,
|
||||
|
|
Loading…
Reference in a new issue