Struct dae_parser::Scene
source · [−]pub struct Scene {
pub instance_physics_scene: Vec<Instance<PhysicsScene>>,
pub instance_visual_scene: Option<Instance<VisualScene>>,
pub extra: Vec<Extra>,
}
Expand description
Embodies the entire set of information that can be visualized from the contents of a COLLADA resource.
Fields
instance_physics_scene: Vec<Instance<PhysicsScene>>
The instantiated PhysicsScene
elements describe
any physics being applied to the scene.
instance_visual_scene: Option<Instance<VisualScene>>
The scene graph is built from the VisualScene
elements instantiated under Scene
.
extra: Vec<Extra>
Provides arbitrary additional information about this element.
Implementations
sourceimpl Scene
impl Scene
sourcepub fn new(instance_visual_scene: Instance<VisualScene>) -> Self
pub fn new(instance_visual_scene: Instance<VisualScene>) -> Self
Construct a new Scene
from a VisualScene
instance.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Scene
impl Send for Scene
impl Sync for Scene
impl Unpin for Scene
impl UnwindSafe for Scene
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more