Struct epaint::tessellator::TessellationOptions [−][src]
pub struct TessellationOptions {
pub pixels_per_point: f32,
pub aa_size: f32,
pub anti_alias: bool,
pub coarse_tessellation_culling: bool,
pub debug_paint_clip_rects: bool,
pub debug_paint_text_rects: bool,
pub debug_ignore_clip_rects: bool,
}
Expand description
Tessellation quality options
Fields
pixels_per_point: f32
Size of a point in pixels, e.g. 2.0. Used to snap text to pixel boundaries.
aa_size: f32
Size of a pixel in points, e.g. 0.5, or larger if you want more blurry edges.
anti_alias: bool
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.
coarse_tessellation_culling: bool
If true
(default) cull certain primitives before tessellating them
debug_paint_clip_rects: bool
Output the clip rectangles to be painted?
debug_paint_text_rects: bool
Output the text-containing rectangles
debug_ignore_clip_rects: bool
If true, no clipping will be done
Implementations
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for TessellationOptions
impl Send for TessellationOptions
impl Sync for TessellationOptions
impl Unpin for TessellationOptions
impl UnwindSafe for TessellationOptions
Blanket Implementations
Mutably borrows from an owned value. Read more