pub struct Ambient { /* private fields */ }
Expand description
Omni-directional, fixed-intensity and fixed-color light source that affects all objects in the scene equally.
Trait Implementations
sourceimpl DowncastObject for Ambient
impl DowncastObject for Ambient
sourcefn downcast(object: ObjectType) -> Option<Self>
fn downcast(object: ObjectType) -> Option<Self>
Attempts to extract the concrete type of the object from an
ObjectType
. Read moresourceimpl Object for Ambient
impl Object for Ambient
sourcefn resolve_data(&self, sync_guard: &SyncGuard<'_>) -> Self::Data
fn resolve_data(&self, sync_guard: &SyncGuard<'_>) -> Self::Data
Retrieves the internal data for the object. Read more
sourcefn set_visible(&self, visible: bool)
fn set_visible(&self, visible: bool)
Invisible objects are not rendered by cameras.
sourcefn set_transform<P, Q>(&self, pos: P, rot: Q, scale: f32)where
Self: Sized,
P: Into<Point3<f32>>,
Q: Into<Quaternion<f32>>,
fn set_transform<P, Q>(&self, pos: P, rot: Q, scale: f32)where
Self: Sized,
P: Into<Point3<f32>>,
Q: Into<Quaternion<f32>>,
Set both position, orientation and scale.
sourcefn set_orientation<Q>(&self, rot: Q)where
Self: Sized,
Q: Into<Quaternion<f32>>,
fn set_orientation<Q>(&self, rot: Q)where
Self: Sized,
Q: Into<Quaternion<f32>>,
Set orientation.
sourcefn set_weights(&self, weights: Vec<f32>)
fn set_weights(&self, weights: Vec<f32>)
Set weights.
impl Eq for Ambient
impl StructuralEq for Ambient
impl StructuralPartialEq for Ambient
Auto Trait Implementations
impl !RefUnwindSafe for Ambient
impl !Send for Ambient
impl !Sync for Ambient
impl Unpin for Ambient
impl !UnwindSafe for Ambient
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
Sets
value
as a parameter of self
.