1
0
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:
triangle drawer
2022-01-25 01:08:27 +09:00
committed by GitHub
parent fa43d16c41
commit 9d596967b4
4 changed files with 28 additions and 31 deletions

View File

@@ -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