pub struct RenderOptions {
pub width: u32,
pub height: u32,
pub camera: Camera,
pub style: VisualStyle,
pub clear_color: LinearRgba,
}Expand description
Configuration for one device-resident headless render.
Fields§
§width: u32Output width in pixels.
height: u32Output height in pixels.
camera: CameraCamera used for this render.
style: VisualStylePrimitive presentation style.
clear_color: LinearRgbaLinear clear color.
Implementations§
Source§impl RenderOptions
impl RenderOptions
Sourcepub fn try_new(
width: u32,
height: u32,
camera: Camera,
style: VisualStyle,
clear_color: LinearRgba,
) -> RenderResult<Self>
pub fn try_new( width: u32, height: u32, camera: Camera, style: VisualStyle, clear_color: LinearRgba, ) -> RenderResult<Self>
Creates options with a validated non-zero target size.
Trait Implementations§
Source§impl Clone for RenderOptions
impl Clone for RenderOptions
Source§fn clone(&self) -> RenderOptions
fn clone(&self) -> RenderOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RenderOptions
impl Debug for RenderOptions
Source§impl PartialEq for RenderOptions
impl PartialEq for RenderOptions
Source§fn eq(&self, other: &RenderOptions) -> bool
fn eq(&self, other: &RenderOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq 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