Ian Douglas Scott
b0d6ffbf17
Fix clippy lints
2022-12-21 19:45:27 -07:00
Simon Hausmann
fbc48512ef
Modify the fruit example to show any logical vs. physical pixel mismatches
...
Resize the window to the physical size of the image.
If softbuffer scales the contents incorrectly, only parts
of the fruit basket will be visible.
2022-12-21 07:40:47 +01:00
Ian Douglas Scott
cdfae58510
wayland: Reuse buffers and pools; check buffer release
...
Also updates `winit` example to redraw on resize, which seems to be
necessary.
With this resizing seems to be entirely smooth, without visual
corruption from it overwriting the buffer the server is displaying.
2022-12-20 16:14:10 -07:00
Jeremy Soller
9b8641fc07
Make new function take both a HasRawWindowHandle and a HasRawDisplayHandle object
2022-12-20 13:40:54 -07:00
Jeremy Soller
99d63063b6
Take a reference to a window in GraphicsContext::new, like glutin and wgpu
2022-12-20 13:40:54 -07:00
Jeremy Soller
939bcc44d8
Fork to swbuf
2022-12-20 07:07:57 -07:00
Liam Murphy
7b4717fdc4
Don't use rayon in examples on wasm
2022-02-23 19:13:26 +11:00
Liam Murphy
d735510f72
Add web support
...
A limitation of this implementation is that it can't coexist with anything which creates a canvas context other than `CanvasRenderingContext2D`, since only one context can exist per canvas.
2022-02-12 20:24:18 +11:00
David Johnson
bc900e69e7
Added animation demo
2022-01-31 22:03:48 -06:00
David Johnson
a23b7f9876
Added fruit example to show a more recognizable image for debugging
2022-01-18 22:07:17 -06:00
David Johnson
dc6fc474be
Added better error handling
2022-01-16 09:01:02 -06:00
David Johnson
8286c2bd6c
Added safety checks for incorrectly sized buffers being passed
2022-01-16 08:07:39 -06:00
David Johnson
d89a0c92aa
Added windows support and made example render something fancier
2022-01-16 08:03:20 -06:00
David Johnson
a36b11a934
X11 implementation no longer has an extraneous copy to deal with xlib's lifetime requirements
2022-01-15 08:33:24 -06:00
David Johnson
384f2dc9a3
Added X11 support
2022-01-15 08:17:17 -06:00