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

egui layer shell example #349

Open
yavko opened this issue Feb 4, 2023 · 7 comments
Open

egui layer shell example #349

yavko opened this issue Feb 4, 2023 · 7 comments

Comments

@yavko
Copy link

yavko commented Feb 4, 2023

Hello I'm new to sctk, and it would be helpful for me and others who want to use egui with layer shell if there was an example, thanks!

@m-hugo
Copy link

m-hugo commented Feb 5, 2023

there's two way to go about it, both are a lot of work:

@yavko
Copy link
Author

yavko commented Feb 5, 2023

there's two way to go about it, both are a lot of work:

* go through winit, implement this [Feature request: Support for Wayland's wlr-layer-shell protocol rust-windowing/winit#2582](https://github.com/rust-windowing/winit/issues/2582) and modify egui-winit to use the newly exposed api

* modify egui-winit to use sctk directly instead of winit

Doesn't egui support using wgpu, or glow, could they be used with sctk?

@m-hugo
Copy link

m-hugo commented Feb 5, 2023

yes, it shoud be easy to make egui render to a sctk wayland window through wgpu, the 'hard' part is the windowing part

@yavko
Copy link
Author

yavko commented Feb 5, 2023

yes, it shoud be easy to make egui render to a sctk wayland window through wgpu, the 'hard' part is the windowing

So would it also be possible through layer shell?

@m-hugo
Copy link

m-hugo commented Feb 5, 2023

@ids1024
Copy link
Member

ids1024 commented Feb 28, 2023

The best solution for this would be layer shell support in winit (rust-windowing/winit#2582). Or perhaps a winit-like library on top of sctk could provide a dedicated way to deal with layer shell surfaces.

@yavko
Copy link
Author

yavko commented Mar 1, 2023

The best solution for this would be layer shell support in winit (rust-windowing/winit#2582). Or perhaps a winit-like library on top of sctk could provide a dedicated way to deal with layer shell surfaces.

I would prefer that too, but a example using raw apis would be cool for the moment, and could be useful.

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

No branches or pull requests

3 participants