mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-11-22 06:48:43 -06:00
fix dep
This commit is contained in:
parent
242a733cf7
commit
dba53e4ceb
|
@ -5,7 +5,6 @@ edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
glium = "0.32"
|
glium = "0.32"
|
||||||
glutin = "*"
|
|
||||||
image = { version = "0.24", default_features = false, features = ["png"] }
|
image = { version = "0.24", default_features = false, features = ["png"] }
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
env_logger = "0.10"
|
env_logger = "0.10"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
use glium::{Surface, uniform};
|
use glium::{Surface, uniform};
|
||||||
use glutin::{
|
use glium::glutin::{
|
||||||
event::{Event, WindowEvent},
|
event::{Event, WindowEvent},
|
||||||
event_loop::{EventLoop, ControlFlow},
|
event_loop::{EventLoop, ControlFlow},
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,8 +1,12 @@
|
||||||
use glium::Display;
|
use glium::Display;
|
||||||
use glutin::event_loop::EventLoop;
|
use glium::glutin::{
|
||||||
|
ContextBuilder,
|
||||||
|
window::WindowBuilder,
|
||||||
|
event_loop::EventLoop
|
||||||
|
};
|
||||||
|
|
||||||
pub fn init_display(event_loop: &EventLoop<()>) -> Display {
|
pub fn init_display(event_loop: &EventLoop<()>) -> Display {
|
||||||
let wb = glutin::window::WindowBuilder::new();
|
let wb = WindowBuilder::new();
|
||||||
let cb = glutin::ContextBuilder::new().with_depth_buffer(24);
|
let cb = ContextBuilder::new().with_depth_buffer(24);
|
||||||
Display::new(wb, cb, &event_loop).unwrap()
|
Display::new(wb, cb, &event_loop).unwrap()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue