Spelling: tesselate -> tessellate

This commit is contained in:
Emil Ernerfeldt 2021-03-28 22:44:03 +02:00
parent aeaa54aab1
commit ccc501f302
2 changed files with 4 additions and 4 deletions

View file

@ -82,7 +82,7 @@ NOTE: `eframe`, `egui_web` and `egui_glium` has their own changelogs!
* Backend: pointer (mouse/touch) position and buttons are now passed to egui in the event stream. * Backend: pointer (mouse/touch) position and buttons are now passed to egui in the event stream.
* `DragValue::range` is now called `clamp_range` and also clamps incoming values. * `DragValue::range` is now called `clamp_range` and also clamps incoming values.
* Renamed `Triangles` to `Mesh`. * Renamed `Triangles` to `Mesh`.
* The tesselator now wraps the clip rectangle and mesh in `struct ClippedMesh(Rect, Mesh)`. * The tessellator now wraps the clip rectangle and mesh in `struct ClippedMesh(Rect, Mesh)`.
* `Mesh::split_to_u16` now returns a 16-bit indexed `Mesh16`. * `Mesh::split_to_u16` now returns a 16-bit indexed `Mesh16`.
### Fixed 🐛 ### Fixed 🐛

View file

@ -70,12 +70,12 @@ pub fn criterion_benchmark(c: &mut Criterion) {
}); });
let galley = font.layout_multiline(LOREM_IPSUM_LONG.to_owned(), wrap_width); let galley = font.layout_multiline(LOREM_IPSUM_LONG.to_owned(), wrap_width);
let mut tesselator = egui::epaint::Tessellator::from_options(Default::default()); let mut tessellator = egui::epaint::Tessellator::from_options(Default::default());
let mut mesh = egui::epaint::Mesh::default(); let mut mesh = egui::epaint::Mesh::default();
c.bench_function("tesselate text", |b| { c.bench_function("tessellate text", |b| {
b.iter(|| { b.iter(|| {
let fake_italics = false; let fake_italics = false;
tesselator.tessellate_text( tessellator.tessellate_text(
&fonts, &fonts,
egui::Pos2::ZERO, egui::Pos2::ZERO,
&galley, &galley,