Struct three_d::window::FrameOutput [−][src]
pub struct FrameOutput {
pub exit: bool,
pub swap_buffers: bool,
pub screenshot: Option<PathBuf>,
pub wait_next_event: bool,
}
Expand description
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 and if the image-io
feature is enabled.
wait_next_event: bool
Whether to stop the render loop until next event.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FrameOutput
impl Send for FrameOutput
impl Sync for FrameOutput
impl Unpin for FrameOutput
impl UnwindSafe for FrameOutput
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more