egui/crates/epaint/src
Emil Ernerfeldt d20f93e9bf
Make all lines and rectangles crisp (#5518)
* Merge this first: https://github.com/emilk/egui/pull/5517

This aligns all rectangles and (horizontal or vertical) line segments to
the physical pixel grid in the `epaint::Tessellator`, making these
shapes appear crisp everywhere.

* Closes https://github.com/emilk/egui/issues/5164
* Closes https://github.com/emilk/egui/issues/3667

This undoes a lot of the explicit, egui-side aligning added in:
* https://github.com/emilk/egui/pull/4943

The new approach has several benefits over the old one:

* It is done automatically by epaint, so it is applied to everything (no
longer opt-in)
* It is applied after any layer transforms (so it always works)
* It makes line segments crisper on high-DPI screens
* All filled rectangles now has sides that end on pixel boundaries
2024-12-26 21:02:27 +01:00
..
text Round widget coordinates to even multiple of 1/32 (#5517) 2024-12-26 20:54:24 +01:00
util Add `emath::OrderedFloat` (moved from `epaint::util::OrderedFloat`) (#4389) 2024-04-21 20:36:32 +02:00
bezier.rs Update MSRV to 1.80 (#5457) 2024-12-10 16:09:03 +01:00
color.rs Added ability to define colors at UV coordinates along a path (#4353) 2024-04-22 18:35:09 +02:00
image.rs Improve error message in ColorImage::region 2024-12-16 15:14:50 +01:00
lib.rs Make all lines and rectangles crisp (#5518) 2024-12-26 21:02:27 +01:00
margin.rs Overload operators for `Rect + Margin`, `Rect - Margin` etc (#4277) 2024-03-30 14:03:41 +01:00
mesh.rs Use `profiling` crate to support more profiler backends (#5150) 2024-12-16 09:15:54 +01:00
mutex.rs Update MSRV to Rust 1.79 (#5421) 2024-12-01 18:58:35 +01:00
shadow.rs Fix typo 2024-09-01 10:23:40 +02:00
shape.rs Make all lines and rectangles crisp (#5518) 2024-12-26 21:02:27 +01:00
shape_transform.rs Make all lines and rectangles crisp (#5518) 2024-12-26 21:02:27 +01:00
stats.rs Remove wildcard imports (#5018) 2024-08-28 12:18:42 +02:00
stroke.rs Fix zero-width strokes still affecting the feathering color of boxes (#5485) 2024-12-16 16:54:18 +01:00
tessellator.rs Make all lines and rectangles crisp (#5518) 2024-12-26 21:02:27 +01:00
texture_atlas.rs Expand max font atlas size from 8k to 16k (#5257) 2024-10-29 10:42:28 +01:00
texture_handle.rs Update MSRV to 1.80 (#5457) 2024-12-10 16:09:03 +01:00
textures.rs Add support for mipmap textures. (#5146) 2024-09-22 19:16:16 +02:00