pub struct FrameParams<'a> {
pub camera: &'a Camera,
pub width: u32,
pub height: u32,
pub dpr: f32,
pub settings: &'a RenderSettings,
pub emphasis: &'a Emphasis,
pub world_per_pixel: f64,
pub overlay: Option<&'a WidgetOverlay>,
}Expand description
Everything a frame needs beyond the scene buffers.
Fields§
§camera: &'a Camera§width: u32Physical pixel size of the target.
height: u32§dpr: f32Device pixel ratio (CSS px → physical px) for line/point widths.
settings: &'a RenderSettings§emphasis: &'a Emphasis§world_per_pixel: f64World units per CSS pixel (for the screen-sized axis helper).
overlay: Option<&'a WidgetOverlay>In-scene overlay widgets: transform gizmo, ViewCube, datum /
dimension / curve visuals. None on the artifact/headless path.
Auto Trait Implementations§
impl<'a> Freeze for FrameParams<'a>
impl<'a> RefUnwindSafe for FrameParams<'a>
impl<'a> Send for FrameParams<'a>
impl<'a> Sync for FrameParams<'a>
impl<'a> Unpin for FrameParams<'a>
impl<'a> UnsafeUnpin for FrameParams<'a>
impl<'a> UnwindSafe for FrameParams<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more