Struct epaint::tessellator::Tessellator [−][src]
Implementations
impl Tessellator
[src]
pub fn from_options(options: TessellationOptions) -> Self
[src]
pub fn tessellate_shape(&mut self, fonts: &Fonts, shape: Shape, out: &mut Mesh)
[src]
Tessellate a single Shape
into a Mesh
.
shape
: the shape to tessellateoptions
: tessellation qualityfonts
: font source when tessellating textout
: where the triangles are putscratchpad_path
: if you plan to runtessellate_shape
many times, pass it a reference to the samePath
to avoid excessive allocations.
pub fn tessellate_text(
&mut self,
fonts: &Fonts,
pos: Pos2,
galley: &Galley,
text_style: TextStyle,
color: Color32,
fake_italics: bool,
out: &mut Mesh
)
[src]
&mut self,
fonts: &Fonts,
pos: Pos2,
galley: &Galley,
text_style: TextStyle,
color: Color32,
fake_italics: bool,
out: &mut Mesh
)
Auto Trait Implementations
impl RefUnwindSafe for Tessellator
impl Send for Tessellator
impl Sync for Tessellator
impl Unpin for Tessellator
impl UnwindSafe for Tessellator
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,