mirror of
https://github.com/griffi-gh/hUI.git
synced 2024-11-21 22:58:42 -06:00
use with_title
This commit is contained in:
parent
33d161500f
commit
37345577d3
|
@ -1,5 +1,5 @@
|
||||||
use glam::{UVec2, Vec2};
|
use glam::{UVec2, Vec2};
|
||||||
use glium::{backend::glutin::SimpleWindowBuilder, Surface};
|
use glium::{Surface, backend::glutin::SimpleWindowBuilder};
|
||||||
use winit::{
|
use winit::{
|
||||||
event::{Event, WindowEvent},
|
event::{Event, WindowEvent},
|
||||||
event_loop::{EventLoopBuilder, ControlFlow}
|
event_loop::{EventLoopBuilder, ControlFlow}
|
||||||
|
@ -35,9 +35,9 @@ pub fn ui<T>(
|
||||||
kubi_logging::init();
|
kubi_logging::init();
|
||||||
|
|
||||||
let event_loop = EventLoopBuilder::new().build().unwrap();
|
let event_loop = EventLoopBuilder::new().build().unwrap();
|
||||||
let (window, display) = SimpleWindowBuilder::new().build(&event_loop);
|
let (window, display) = SimpleWindowBuilder::new()
|
||||||
|
.with_title(name)
|
||||||
window.set_title(name);
|
.build(&event_loop);
|
||||||
|
|
||||||
let mut hui = UiInstance::new();
|
let mut hui = UiInstance::new();
|
||||||
let mut backend = GliumUiRenderer::new(&display);
|
let mut backend = GliumUiRenderer::new(&display);
|
||||||
|
|
Loading…
Reference in a new issue