mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 05:40:03 -04:00
Reducing glutin dependency in egui_glow (#1151)
Use winit wherever possible
This commit is contained in:
@@ -44,7 +44,7 @@ fn main() {
|
||||
let event_loop = glutin::event_loop::EventLoop::with_user_event();
|
||||
let (gl_window, gl) = create_display(&event_loop);
|
||||
|
||||
let mut egui_glow = egui_glow::EguiGlow::new(&gl_window, &gl);
|
||||
let mut egui_glow = egui_glow::EguiGlow::new(gl_window.window(), &gl);
|
||||
|
||||
event_loop.run(move |event, _, control_flow| {
|
||||
let mut redraw = || {
|
||||
@@ -78,7 +78,7 @@ fn main() {
|
||||
|
||||
// draw things behind egui here
|
||||
|
||||
egui_glow.paint(&gl_window, &gl);
|
||||
egui_glow.paint(gl_window.window(), &gl);
|
||||
|
||||
// draw things on top of egui here
|
||||
|
||||
|
||||
Reference in New Issue
Block a user