oa::ViewerLiveSource
Non-owning live GPU producer attached to the Viewer lifecycle. Donor: oa::ViewerLiveSource.
Declaration
pub trait ViewerLiveSource { // Required methods fn capabilities(&self) -> ViewerLiveCapabilities; fn open(&mut self, engine: &Engine) -> Result<()>; fn update(&mut self, delta_ms: f32) -> Result<()>; fn render(&mut self, ui: &mut Ui<'_>, width: u32, height: u32) -> Result<()>; fn close(&mut self) -> Result<()>; // Provided method fn on_event(&mut self, _event: &UiEvent) -> Result<()> { ... } }Public Rust declaration.
Public Methods
Public Method Documentation
Called once when the Viewer obtains an Engine.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.