oa::ViewerLiveSource

Non-owning live GPU producer attached to the Viewer lifecycle. Donor: oa::ViewerLiveSource.

TrRust public API

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

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<()>
fn on_event(&mut self, _event: &UiEvent) -> Result<()>

Public Method Documentation

fn capabilities( &self ) -> ViewerLiveCapabilities
Called once when the Viewer obtains an Engine.
fn open(&mut self, engine: &Engine) -> Result<()>
No public source comment is attached to this declaration.
fn update(&mut self, delta_ms: f32) -> Result<()>
No public source comment is attached to this declaration.
fn render(&mut self, ui: &mut Ui<'_>, width: u32, height: u32) -> Result<()>
No public source comment is attached to this declaration.
fn close(&mut self) -> Result<()>
No public source comment is attached to this declaration.
fn on_event(&mut self, _event: &UiEvent) -> Result<()>
No public source comment is attached to this declaration.