Struct bevy_retrograde_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
Returns the “default value” for a type. Read more
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
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
impl<T> FromWorld for T where
T: Default,
impl<T> FromWorld for T where
T: Default,
pub fn from_world(_world: &mut World) -> T
pub fn from_world(_world: &mut World) -> T
Creates Self
using data from the given [World]
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn clone_type_data(&self) -> Box<dyn TypeData + 'static, Global>
pub fn vzip(self) -> V