Struct three_d::window::FrameOutput
source · pub struct FrameOutput {
pub exit: bool,
pub swap_buffers: bool,
pub wait_next_event: bool,
}Expand description
Output from the rendering to the window each frame.
Fields§
§exit: boolIf this is true:
- On desktop, the window is closed and the renderloop is stopped.
- On web, the render loop is stopped, the event handlers are removed and the
Windowdropped. Note that the canvas is not removed.
swap_buffers: boolSwaps the back and front buffer if this is true. Set this to true if something have been rendered this frame and you want to display it. Set it to false if nothing have been rendered this frame, for example if nothing has changed, and you want to reuse the image from an old frame. Currently ignored on web, since it does not use double buffering.
wait_next_event: boolWhether to stop the render loop until next event.
Trait Implementations§
source§impl Clone for FrameOutput
impl Clone for FrameOutput
source§fn clone(&self) -> FrameOutput
fn clone(&self) -> FrameOutput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more