three-d icon indicating copy to clipboard operation
three-d copied to clipboard

Use egui-glow instead of custom implementation of egui

Open asny opened this issue 3 years ago • 2 comments

  • Deprecate egui implementation
  • Use egui-glow in examples

asny avatar Mar 23 '22 18:03 asny

It's easy to use egui-glow with a winit window, but not on web. So there are several options as I see it:

  • Use egui-glow Painter and implement event mapping etc. in every example that requires gui
  • Use eframe instead of a three-d window for those examples that requires gui
  • Keep an implementation of egui (use egui-glow for native and a custom for web)
  • Make a contribution to egui to make egui-glow support web
  • Only have a gui on native

asny avatar Apr 01 '22 11:04 asny

egui_glow::Painter is already being used for web by egui_web, so it should not be too much work to use egui_glow::Painter in three-d.

emilk avatar Apr 07 '22 12:04 emilk

I decided to keep an egui implementation to avoid duplicating the necessary code everywhere. However, that implementation is using egui-glow so it is a really thin wrapper, most of the code is for mapping from three-d input (for example events) to egui input.

asny avatar Aug 10 '22 10:08 asny