Struct three_d::FrameOutput[][src]

pub struct FrameOutput {
    pub exit: bool,
    pub swap_buffers: bool,
    pub screenshot: Option<PathBuf>,
}

Output from the rendering to the window each frame.

Fields

exit: bool

Closes the window and stops the renderloop if this is true. Only relevant on desktop, ignored on web.

swap_buffers: bool

Swaps 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.

screenshot: Option<PathBuf>

Takes a screenshot if this is set to some path and saves it at the given location. Only works on desktop, will be ignored on web.

Trait Implementations

impl Clone for FrameOutput[src]

impl Debug for FrameOutput[src]

impl Default for FrameOutput[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.