Trait GenericMeshWithMaterial

Source
pub trait GenericMeshWithMaterial: GenericMesh {
    // Required method
    fn get_material(&self) -> Option<&dyn Material>;
}
Expand description

The GenericMeshWithMaterial trait helps the MeshWithMaterial struct to be able to turn into an object

Required Methods§

Implementors§

Source§

impl<BV, V, BE, E, BI, I, BC, C> GenericMeshWithMaterial for Mesh<BV, V, BE, E, BI, I, BC, C>
where BV: BufferVec<V>, BE: BufferVec<E>, BI: BufferVec<I>, BC: BufferVec<C>, V: BufferVecItem, E: BufferVecItem, I: BufferVecItem, C: BufferVecItem,

Source§

impl<M: GenericMesh, Mat: Material> GenericMeshWithMaterial for MeshWithMaterial<M, Mat>