Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump to egui 0.24 #13

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Bump to egui 0.24 #13

wants to merge 3 commits into from

Conversation

TheZoq2
Copy link

@TheZoq2 TheZoq2 commented Dec 11, 2023

This bumps egui to 0.24 which had incompatibilities with the previous version.

egui-sdl2-event is still on on 0.23 or older so the tests or examples don't currently run

Cargo.toml Show resolved Hide resolved
@lucasmerlin
Copy link
Owner

Hi! Thanks for opening the PR! I guess this is blocked on the update of egui-sdl2-event? Maybe you can also open an issue over there?

@@ -92,7 +92,7 @@ impl Painter {
Some(pos) => {
let old_image = self.paints.remove(id).unwrap().image;

let mut surface = Surface::new_raster_n32_premul(skia_safe::ISize::new(
let mut surface = surfaces::raster_n32_premul(skia_safe::ISize::new(
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it seems like the surface api changed, you should probably also bump the minimum version of skia I think?

src/egui_skia.rs Show resolved Hide resolved
src/egui_skia.rs Show resolved Hide resolved
@lucasmerlin lucasmerlin mentioned this pull request Dec 12, 2023
Comment on lines +95 to +96
// TODO: How to handle multiple outputs
viewport_output: _
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no idea how this should be handled here btw. I guess for actual rendering to a window, we'd need to ask winit or sdl?

For my use case I'm only using this crate to render to a texture, and then this makes little sense

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I think for now we can ignore multiple viewports, as long as a single one works correctly as it did before. If someone requires that feature they can open a pull request. Maybe we could add a note to the readme that this is currently not supported.

@MCOfficer
Copy link

MCOfficer commented Feb 7, 2024

Seems like egui-sdl2-events is updated to egui 0.24: https://github.com/kaphula/egui-sdl2-event/blob/master/lib/Cargo.toml (but not 0.25)

@lucasmerlin
Copy link
Owner

I just realized that egui_skia only depends on egui-sdl2-events for the two sdl examples, maybe we could just comment the dependency until it is updated to the most recent version (egui already seems to be updated to 0.26 now), and add a note to the two examples that they currently won't work.

But still, at least the winit integration will need to be updated before we can release an update with a current egui version. I don't use this crate anymore so I can't put the work into updating but I'm happy to review and help so we can get a new version released soon.

@TheZoq2
Copy link
Author

TheZoq2 commented Feb 8, 2024

I don't use this crate anymore so I can't put the work into updating but I'm happy to review and help so we can get a new version released soon.

I'm actively using it, but only for the rendering to images for snapshot testing of https://gitlab.com/surfer-project/surfer. I therefore keep my fork up-to-date enough to work for that, but don't really have the time to update the rest of the library.

If you are open to scaling the library back to only the software rendering part, I'd be happy to maintain it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants