Skip to content

Commit c7c2d85

Browse files
authored
egui 0.26 (#574)
1 parent 86bc4d2 commit c7c2d85

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ Per Keep a Changelog there are 6 main categories of changes:
5050
- rend3: Update to winit 0.29.4 @pillowtrucker
5151
- rend3-framework: Consolidate many arguments into single `SetupContext`, `EventContext`, and `RedrawContext` structs. @cwfitzgerald
5252
- rend3-framework: Surfaces are now handled amost entirely by the framework, including acquiring frames and presenting. Redraws now happen in a dedicated `handle_redraw` callback. @cwfitzgerald
53+
- rend3-egui: Update to egui 0.26. @Elabajaba
5354

5455
### Fixes
5556
- Fixed renderpass compatibility checks to avoid issues when RODS is used. @OptimisticPeach

examples/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ path = "src/main.rs"
2020
# error handling
2121
anyhow = "1"
2222
# The egui immediate mode gui library
23-
egui = {git = "https://github.com/emilk/egui.git", branch="master"}
23+
egui = "0.26"
2424
# Winit integration with egui (turn off the clipboard feature)
25-
egui-winit = { git = "https://github.com/emilk/egui.git", branch="master", default-features = false, features = ["links", "wayland"] }
25+
egui-winit = { version = "0.26", default-features = false, features = ["links", "wayland"] }
2626
# logging
2727
env_logger = { version = "0.10", default-features = false, features = ["auto-color", "humantime"] }
2828
# Linear algebra library

rend3-egui/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ categories = ["game-development", "graphics", "rendering", "rendering::engine",
1212
rust-version = "1.71"
1313

1414
[dependencies]
15-
egui = {git = "https://github.com/emilk/egui.git", branch="master"}
16-
egui-wgpu = {git = "https://github.com/emilk/egui.git", branch="master"}
15+
egui = "0.26"
16+
egui-wgpu = "0.26"
1717
glam = "0.24"
1818
rend3 = { version = "^0.3.0", path = "../rend3" }
1919
wgpu = "0.19.0"

rend3-egui/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use wgpu::TextureFormat;
1515

1616
pub struct EguiRenderRoutine {
1717
pub internal: egui_wgpu::Renderer,
18-
screen_descriptor: egui_wgpu::renderer::ScreenDescriptor,
18+
screen_descriptor: egui_wgpu::ScreenDescriptor,
1919
textures_to_free: Vec<egui::TextureId>,
2020
}
2121

@@ -36,7 +36,7 @@ impl EguiRenderRoutine {
3636

3737
Self {
3838
internal: rpass,
39-
screen_descriptor: egui_wgpu::renderer::ScreenDescriptor {
39+
screen_descriptor: egui_wgpu::ScreenDescriptor {
4040
size_in_pixels: [width, height],
4141
pixels_per_point: scale_factor,
4242
},
@@ -45,7 +45,7 @@ impl EguiRenderRoutine {
4545
}
4646

4747
pub fn resize(&mut self, new_width: u32, new_height: u32, new_scale_factor: f32) {
48-
self.screen_descriptor = egui_wgpu::renderer::ScreenDescriptor {
48+
self.screen_descriptor = egui_wgpu::ScreenDescriptor {
4949
size_in_pixels: [new_width, new_height],
5050
pixels_per_point: new_scale_factor,
5151
};

0 commit comments

Comments
 (0)