use std::error::Error; use vulkano::sync::GpuFuture; use crate::core::app::context::WindowContext; pub mod manager; pub trait Scene { fn loaded(&self) -> bool; fn load(&mut self, app_context: &mut WindowContext) -> Result<(), Box>; fn update(&mut self, app_context: &mut WindowContext) -> Result<(), Box>; fn render( &mut self, acquire_future: Box, app_context: &mut WindowContext, ) -> Result, Box>; fn unload(&mut self); }