Struct three::template::MeshTemplate
source · pub struct MeshTemplate {
pub object: usize,
pub geometry: InstancedGeometry,
pub material: Material,
pub skeleton: Option<usize>,
}
Expand description
Information for instantiating a Mesh
.
See the module documentation for more information on mesh instancing and how mesh data is setup for templates.
Fields
object: usize
geometry: InstancedGeometry
The geometry used in the mesh.
material: Material
skeleton: Option<usize>
The skeleton used to render the mesh, if it’s a skinned mesh.
Trait Implementations
sourceimpl Clone for MeshTemplate
impl Clone for MeshTemplate
sourcefn clone(&self) -> MeshTemplate
fn clone(&self) -> MeshTemplate
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl !RefUnwindSafe for MeshTemplate
impl Send for MeshTemplate
impl Sync for MeshTemplate
impl Unpin for MeshTemplate
impl !UnwindSafe for MeshTemplate
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
.