compiles, doesn't run. Not sure where I left this...

This commit is contained in:
2021-12-23 03:17:04 -08:00
parent b98c7312cc
commit 7527694fd2
22 changed files with 3165 additions and 19 deletions

View File

@@ -10,8 +10,9 @@ use wgpu::{BindGroup, Buffer, TextureView};
use crate::runtime::state::{TomlPositionDescription, TomlRotationDescription};
use imgui::Ui;
// a component is any type that is 'static, sized, send and sync
/// a component is any type that is 'static, sized, send and sync
/// ImguiWindow contains a single handle and lifetime to an Imgui window, along with
/// a function which takes a UI, as well as a vector of a user defined type T
pub struct ImguiWindow<'a, T> {
pub window: fn() -> imgui::Window<'a>,
pub func: fn(&Ui, Vec<&T>),