pub struct Mesh<G: Geometry, M: Material> {
pub geometry: G,
pub material: M,
/* private fields */
}Fields§
§geometry: G§material: MImplementations§
Trait Implementations§
Source§impl<G: Geometry, M: Material> InstanceUpdater for Mesh<G, M>
impl<G: Geometry, M: Material> InstanceUpdater for Mesh<G, M>
fn update_instance(&self, instance: &mut RenderInstance)
Source§impl<G: Geometry, M: Material> MeshLike for Mesh<G, M>
impl<G: Geometry, M: Material> MeshLike for Mesh<G, M>
Source§fn identifier(&self) -> MraphicsID
fn identifier(&self) -> MraphicsID
Returns the unique identifier of this mesh.
Source§fn build_instance(&self) -> RenderInstance
fn build_instance(&self) -> RenderInstance
Builds a
RenderInstance using this mesh’s data.Source§impl<M: Material> Representable for Mesh<Cube, M>
impl<M: Material> Representable for Mesh<Cube, M>
type Intermediate = Vertices
fn as_intermediate(&self) -> Self::Intermediate
fn update_from_intermediate(&mut self, repr: &Self::Intermediate)
Source§impl<M: Material> Representable for Mesh<Sphere, M>
impl<M: Material> Representable for Mesh<Sphere, M>
type Intermediate = Vertices
fn as_intermediate(&self) -> Self::Intermediate
fn update_from_intermediate(&mut self, repr: &Self::Intermediate)
Auto Trait Implementations§
impl<G, M> Freeze for Mesh<G, M>
impl<G, M> RefUnwindSafe for Mesh<G, M>where
G: RefUnwindSafe,
M: RefUnwindSafe,
impl<G, M> Send for Mesh<G, M>
impl<G, M> Sync for Mesh<G, M>
impl<G, M> Unpin for Mesh<G, M>
impl<G, M> UnsafeUnpin for Mesh<G, M>where
G: UnsafeUnpin,
M: UnsafeUnpin,
impl<G, M> UnwindSafe for Mesh<G, M>where
G: UnwindSafe,
M: UnwindSafe,
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.