Commit graph

10 commits

Author SHA1 Message Date
Olivier Goffart
4f0e2608d2 Sofware renderer: keep a Weak of the Window
Closes #1545

Not that `SoftwareRenderer::new()`  takes the Weak by value instead of
by reference, because coercing a reference to a `Weak` to a `&Weak<dyn>`
is not possible, while converting a Weak to a `Weak<dyn>` just works.
2022-08-29 11:07:05 +02:00
Olivier Goffart
4105bafc2f Fix the doc example of SoftwareRenderer::render_line_by_line
If we don't make it compile, it will have so many typo it's useless :-)
2022-08-27 15:05:06 +02:00
Olivier Goffart
2ad648ac66 swrenderer: Do not draw the inside of rounder rectangle if it is transparent
No need to blend a slice of transparent color
2022-08-25 12:37:05 +02:00
Olivier Goffart
ab4ce29749 Add a Rgb565Pixel
So we don't have to depend on embedded_graphics just for that
2022-08-25 12:37:05 +02:00
Olivier Goffart
a27806aca8 Add a feature to use the sofware renderer with the winit backend
Currently, you still need to pass some env variable at build time so it
embeds the font.
2022-08-22 19:02:28 +02:00
Olivier Goffart
243df1ed54 Rename blend_buffer to blend_slice 2022-08-22 09:52:56 +02:00
Olivier Goffart
228e2d9a7e Some polishing of the TargetPixel trait 2022-08-22 09:52:56 +02:00
Olivier Goffart
4ecc2cd1c0 swrenderer: add a renderer that operate dirrectly on the frame buffer 2022-07-06 17:06:40 +02:00
Olivier Goffart
014c827194 swrenderer: Optimize image drawing by using premultiplied colors 2022-06-14 11:23:02 +02:00
Olivier Goffart
a72115518d Move the software renderer to core 2022-06-04 13:40:50 +02:00
Renamed from internal/backends/mcu/renderer/draw_functions.rs (Browse further)