let-engine 0.10.0

game engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::{resources::RESOURCES, Draw, EVENT_LOOP};

use egui_winit_vulkano::{Gui, GuiConfig};

pub(crate) fn init(draw: &Draw) -> Gui {
    let vulkan = RESOURCES.vulkan();
    EVENT_LOOP.with_borrow(|event_loop| {
        Gui::new_with_subpass(
            event_loop.get().unwrap(),
            draw.surface.clone(),
            vulkan.queue.clone(),
            vulkan.subpass.clone(),
            vulkano::format::Format::R8G8B8A8_UNORM,
            GuiConfig::default(),
        )
    })
}