pub struct VisualInstance {Show 17 fields
pub renderable: GpuRenderable,
pub transform: Transform,
pub color: [f32; 4],
pub opacity: f32,
pub multiple_layers: bool,
pub transparent_cutout: bool,
pub background: bool,
pub background_occluded_lit: bool,
pub overlay: bool,
pub emissive: f32,
pub texture: Option<TextureHandle>,
pub texture_filtering: TextureFiltering,
pub quant_steps: f32,
pub bones_base: u32,
pub bones_count: u32,
pub stencil_ref: u8,
pub is_stencil_clip: bool,
}Fields§
§renderable: GpuRenderable§transform: Transform§color: [f32; 4]§opacity: f32§multiple_layers: bool§transparent_cutout: bool§background: bool§background_occluded_lit: bool§overlay: bool§emissive: f32§texture: Option<TextureHandle>§texture_filtering: TextureFiltering§quant_steps: f32§bones_base: u32Base index into VisualWorld::bones_palette.
bones_count: u32Number of bone matrices for this instance.
stencil_ref: u8Which clip region this instance is inside. 0 = unclipped.
is_stencil_clip: boolWhen true, this instance writes stencil before its descendant subtree draws. It also draws normally in the color pass (double duty: clip source + background quad).
Trait Implementations§
Source§impl Clone for VisualInstance
impl Clone for VisualInstance
Source§fn clone(&self) -> VisualInstance
fn clone(&self) -> VisualInstance
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 moreimpl Copy for VisualInstance
Auto Trait Implementations§
impl Freeze for VisualInstance
impl RefUnwindSafe for VisualInstance
impl Send for VisualInstance
impl Sync for VisualInstance
impl Unpin for VisualInstance
impl UnsafeUnpin for VisualInstance
impl UnwindSafe for VisualInstance
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
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.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.