Struct tridify_rs::Tridify
source · pub struct Tridify { /* private fields */ }
Expand description
Root struct which initializes WGPU, starts window management and handles application loop.
Implementations§
source§impl Tridify
impl Tridify
pub fn new() -> Self
pub fn has_windows(&self) -> bool
pub fn destroy_window(&mut self, wnd_id: &WindowId)
pub fn create_window(&mut self) -> Result<&mut Window, Box<dyn Error>>
sourcepub fn start<T: 'static>(self, user_ctx: T) -> !
pub fn start<T: 'static>(self, user_ctx: T) -> !
Begin application logic loop. Should be called last when initializing since this function can’t never return.