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

Try egui_glow with egui-winit on web #1032

Open
emilk opened this issue Jan 3, 2022 · 6 comments
Open

Try egui_glow with egui-winit on web #1032

emilk opened this issue Jan 3, 2022 · 6 comments
Labels
egui-winit porblems related to winit web Related to running Egui on the web

Comments

@emilk
Copy link
Owner

emilk commented Jan 3, 2022

It would be great if we could get egui-winit to work on the web using egui_glow for rendering. If that worked, we could potentially make eframe just a thin wrapper around those two crates, with no need for egui_web.

Related: #685 by @AlexApps99 and #868 by @t18b219k. Also related: #1022

Tracking issues (from #1022 (comment)):

@emilk emilk added web Related to running Egui on the web egui-winit porblems related to winit labels Jan 3, 2022
@KentaTheBugMaker
Copy link
Contributor

I'm working for it.
and found EventLoopProxy on wasm does not implement Send trait .
so we need to some treat for it.

@KentaTheBugMaker
Copy link
Contributor

KentaTheBugMaker commented Jan 4, 2022

progress .
copy NeedRepaint from web and ignore repaint when repaint signal emitted on web .
works but crash.

@KentaTheBugMaker
Copy link
Contributor

crash caused from wasm std::thread.
so disable sleep in wasm.

@KentaTheBugMaker
Copy link
Contributor

KentaTheBugMaker commented Jan 4, 2022

sleep disabled works perfect on my laptop but still need to port persistence.

@KentaTheBugMaker
Copy link
Contributor

update
We need to disable browser's context menu for canvas.

@KentaTheBugMaker
Copy link
Contributor

I will make draft PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
egui-winit porblems related to winit web Related to running Egui on the web
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants