pub struct RenderOptions {
pub width: u32,
pub height: u32,
pub background: Color,
}Expand description
Size and background of one render call.
Fields§
§width: u32Output size; the scene is scaled uniformly to fit and centered.
height: u32Output height in pixels.
background: ColorColor drawn under the scene.
Trait Implementations§
Source§impl Clone for RenderOptions
impl Clone for RenderOptions
impl Copy for RenderOptions
Auto Trait Implementations§
impl Freeze for RenderOptions
impl RefUnwindSafe for RenderOptions
impl Send for RenderOptions
impl Sync for RenderOptions
impl Unpin for RenderOptions
impl UnsafeUnpin for RenderOptions
impl UnwindSafe for RenderOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more