pub struct Base { /* private fields */ }
Expand description
Base
represents a concrete entity that can be added to the scene.
One cannot construct Base
directly. Wrapper types such as Camera
,
Mesh
, and Group
are provided instead.
Any type that implements Object
may be converted to its concrete
Base
type with the method Object::upcast
. This is useful for
storing generic objects in containers.
Trait Implementations
sourceimpl AsRef<Base> for Directional
impl AsRef<Base> for Directional
sourceimpl AsRef<Base> for DynamicMesh
impl AsRef<Base> for DynamicMesh
sourceimpl AsRef<Base> for Hemisphere
impl AsRef<Base> for Hemisphere
sourceimpl Object for Base
impl Object for Base
type Data = ObjectType
type Data = ObjectType
The internal data for the object. Read more
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 Base
Auto Trait Implementations
impl !RefUnwindSafe for Base
impl !Send for Base
impl !Sync for Base
impl Unpin for Base
impl !UnwindSafe for Base
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
.