Struct a1_vehicle::Demo [−][src]
pub(crate) struct Demo {
background_layer: LayerHandle,
foreground_layer: LayerHandle,
vehicles: Vec<Vehicle>,
camera: OrthoCamera,
}Fields
background_layer: LayerHandleforeground_layer: LayerHandlevehicles: Vec<Vehicle>camera: OrthoCameraImplementations
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.