
* egui-winit: don't assume window available at init On Android in particular we can only initialize render state once we have a native window, after a 'Resumed' lifecycle event. It's still practical to be able to initialize an egui_winit::State early on so this adds setters for the max_texture_side and pixels_per_point that can be called once we have a valid Window and have initialized a graphics context. On Wayland, where we need to access the Display for clipboard handling we now get the Display from the event loop instead of a window. * egui-wgpu: lazily initialize render + surface state Enable the renderer and surface state initialization to be deferred until we know that any winit window we created has a valid native window and enable the surface state to be updated in case the native window changes. In particular these changes help with running on Android where winit windows will only have a valid native window associated with them between Resumed and Paused lifecycle events, and so surface creation (and render state initialization) needs to wait until the first Resumed event, and the surface needs to be dropped/recreated based on Paused/Resumed events.
2.1 KiB
2.1 KiB
Changelog for egui-winit
All notable changes to the egui-winit
integration will be noted in this file.
Unreleased
- Fix clipboard on Wayland (#1613).
- Allow deferred render + surface state initialization for Android (#1634)
0.18.0 - 2022-04-30
- Reexport
egui
crate - MSRV (Minimum Supported Rust Version) is now
1.60.0
(#1467). - Added new feature
puffin
to addpuffin profiler
scopes (#1483). - Renamed the feature
convert_bytemuck
tobytemuck
(#1467). - Renamed the feature
serialize
toserde
(#1467). - Removed the features
dark-light
andpersistence
(#1542).
0.17.0 - 2022-02-22
- Fixed horizontal scrolling direction on Linux.
- Replaced
std::time::Instant
withinstant::Instant
for WebAssembly compatability (#1023) - Automatically detect and apply dark or light mode from system (#1045).
- Fixed
enable_drag
on Windows OS (#1108). - Shift-scroll will now result in horizontal scrolling on all platforms (#1136).
- Require knowledge about max texture side (e.g.
GL_MAX_TEXTURE_SIZE
)) (#1154).
0.16.0 - 2021-12-29
- Added helper
EpiIntegration
(#871). - Fixed shift key getting stuck enabled with the X11 option
shift:both_capslock
enabled (#849). - Removed
State::is_quit_event
andState::is_quit_shortcut
(#881). - Updated
winit
to 0.26 (#930).
0.15.0 - 2021-10-24
First stand-alone release. Previously part of egui_glium
.