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

glow wasm backend #837

Closed
leviska opened this issue Oct 24, 2021 · 9 comments
Closed

glow wasm backend #837

leviska opened this issue Oct 24, 2021 · 9 comments

Comments

@leviska
Copy link

leviska commented Oct 24, 2021

I've seen your recent PR with glow backend, and it looks very nice!

But I really hoped that with glow there will be (at least some basic) support for glow wasm (web-sys) target also, but it seems, that glutin is required for glow.

I would really appreciate it if you'd made some basic support for wasm with glow.

As far as I understand, rendering side should be easily done, because glow is (kinda) similar on web and native sides.

Input is the harder problem, and I will be satisfied at least with just an ability to pass inputs yourself (and rendering done with glow). As I understand, I can't do it right now(?)

@emilk
Copy link
Owner

emilk commented Oct 24, 2021

You should be able to just use egui_glow::Painter. You could potentially use egui_web for handling input to egui, and use egui_glow for the painting.

Try it!

@AlexApps99 may have some better ideas here.

@leviska
Copy link
Author

leviska commented Oct 24, 2021

Ooh, I'll try, big thanks :)

@emilk
Copy link
Owner

emilk commented Oct 24, 2021

Related issue: #820

@AlexApps99
Copy link
Contributor

At this point, egui_glow does not work with wasm, but support is very close.

Check out the issue above for more info, but in the mean time, you can use conditional compilation with egui_web.

@AlexApps99
Copy link
Contributor

Have a look at #852, it seems to be an early work in progress, but it would certainly close this issue.

@leviska
Copy link
Author

leviska commented Oct 29, 2021

Thanks
I'm not in a hurry, so I'll wait for some unified solution, 852 looks very promising

@KentaTheBugMaker
Copy link
Contributor

KentaTheBugMaker commented Oct 30, 2021

Let's try #868
Current test status

  • OpenGL 4.6 (same as glium and glow)(on Ryzen 5 5500U iGPU)
  • WebGL1 (same as web) (on servo)
  • WebGL1+sRGB (same as web)(on webgl2 disabled firefox with angle and native GL)
  • WebGL2 (same as web)(on firefox , edge,firefox android)

and report bugs.
https://github.com/t18b219k/egui.git

@KentaTheBugMaker
Copy link
Contributor

let's close this issue

@emilk
Copy link
Owner

emilk commented Nov 8, 2021

Closed by #868

@emilk emilk closed this as completed Nov 8, 2021
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

4 participants