Struct epaint::tessellator::Tessellator [−][src]
pub struct Tessellator { /* fields omitted */ }
Implementations
impl Tessellator
[src]
impl Tessellator
[src]pub fn from_options(options: TessellationOptions) -> Self
[src]
pub fn tessellate_shape(
&mut self,
tex_size: [usize; 2],
shape: Shape,
out: &mut Mesh
)
[src]
pub fn tessellate_shape(
&mut self,
tex_size: [usize; 2],
shape: Shape,
out: &mut Mesh
)
[src]Tessellate a single Shape
into a Mesh
.
shape
: the shape to tessellateoptions
: tessellation qualitytex_size
: size of the font texture (required to normalize glyph uv rectangles)out
: 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,
tex_size: [usize; 2],
pos: Pos2,
galley: &Galley,
color: Color32,
fake_italics: bool,
out: &mut Mesh
)
[src]
&mut self,
tex_size: [usize; 2],
pos: Pos2,
galley: &Galley,
color: Color32,
fake_italics: bool,
out: &mut Mesh
)