Ian Douglas Scott
c1d6716eec
Add a Buffer::present_with_damage() method
...
Supported on Wayland, X11, and Win32.
Fixes https://github.com/rust-windowing/softbuffer/issues/39 .
try_for_each
2023-04-26 11:58:11 -07:00
Ian Douglas Scott
a09e4cf679
Owned pixel buffer for no-copy presentation
...
This is based on the API that will be used for no-copy presentation. But
wraps it in `set_buffer`.
This also fixes the Wayland buffer code to set `self.width` and
`self.height` on resize, and set the length of the shared memory file
when the buffer is created.
Co-authored-by: jtnunley <jtnunley01@gmail.com>
2023-04-06 10:30:59 +03:00
Ian Douglas Scott
fc1bba64ab
Rename SwBufError back to SoftBufferError
...
This seems to be the last thing left over from the `swbuf` rename.
2022-12-27 12:57:26 -08:00
Mads Marquart
89bd260fd8
Use #![deny(unsafe_op_in_unsafe_fn)]
2022-12-23 04:19:41 +01:00
John Nunley
5674886dfa
Add reformat to the CI ( #21 )
2022-12-22 12:35:18 -08:00
jtnunley
319ff565a5
Use static dispatch
2022-12-22 10:09:47 -08: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
95e8d05902
Rename SoftBufferError to SwBufError
2022-12-20 07:11:11 -07:00
Jeremy Soller
7351d68814
Add Redox/Orbital support
2022-12-20 07:11:09 -07:00