Struct re_renderer::view_builder::TargetConfiguration
source · pub struct TargetConfiguration {
pub name: DebugLabel,
pub resolution_in_pixel: [u32; 2],
pub view_from_world: IsoTransform,
pub projection_from_view: Projection,
pub viewport_transformation: RectTransform,
pub pixels_per_point: f32,
pub outline_config: Option<OutlineConfig>,
pub blend_with_background: bool,
}
Expand description
Basic configuration for a target view.
Fields§
§name: DebugLabel
§resolution_in_pixel: [u32; 2]
The viewport resolution in physical pixels.
view_from_world: IsoTransform
§projection_from_view: Projection
§viewport_transformation: RectTransform
Defines a viewport transformation from the projected space to the final image space.
This can be used to implement pan & zoom independent of the camera projection. Meaning that this transform allows you to zoom in on a portion of a perspectively projected scene.
Note only the relation of the rectangles in RectTransform
is important.
Scaling or moving both rectangles by the same amount does not change the result.
Internally, this is used to transform the normalized device coordinates to the given portion. This transform is applied to the projection matrix.
pixels_per_point: f32
How many pixels are there per point.
I.e. the UI zoom factor. Note that this does not affect any of the camera & projection properties and is only used whenever point sizes were explicitly specified.
outline_config: Option<OutlineConfig>
§blend_with_background: bool
If true, the composite
step will blend the image with the background.
Otherwise, this step will overwrite whatever was there before, drawing the view builder’s result as an opaque rectangle.
Trait Implementations§
source§impl Clone for TargetConfiguration
impl Clone for TargetConfiguration
source§fn clone(&self) -> TargetConfiguration
fn clone(&self) -> TargetConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TargetConfiguration
impl Debug for TargetConfiguration
Auto Trait Implementations§
impl Freeze for TargetConfiguration
impl RefUnwindSafe for TargetConfiguration
impl Send for TargetConfiguration
impl Sync for TargetConfiguration
impl Unpin for TargetConfiguration
impl UnwindSafe for TargetConfiguration
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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