Struct a2_async_sim::Demo [−][src]
pub(crate) struct Demo { background_layer: LayerHandle, foreground_layer: LayerHandle, camera: OrthoCamera, sim: Worker<VehicleWorld>, }
Fields
background_layer: LayerHandle
foreground_layer: LayerHandle
camera: OrthoCamera
sim: Worker<VehicleWorld>
Implementations
Render the background grid geometry below all other geometry for the frame.
Trait Implementations
Invoked by the application once just before the first update/render. Read more
Called once each frame before presenting the framebuffer.
fn handle_event(
&mut self,
window_event: &WindowEvent,
_window: &mut Window,
graphics: &mut Graphics
) -> Result<()>
fn handle_event(
&mut self,
window_event: &WindowEvent,
_window: &mut Window,
graphics: &mut Graphics
) -> Result<()>
Handle a glfw window event. Read more
Auto Trait Implementations
impl !RefUnwindSafe for Demo
impl !UnwindSafe for Demo
Blanket Implementations
Mutably borrows from an owned value. Read more
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
Checks if self
is actually part of its subset T
(and can be converted to it).
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
The inclusion map: converts self
to the equivalent element of its superset.