Skip to main content

MeshLike

Trait MeshLike 

Source
pub trait MeshLike: InstanceUpdater {
    // Required methods
    fn identifier(&self) -> MraphicsID;
    fn build_instance(&self) -> RenderInstance;

    // Provided method
    fn update(&mut self) { ... }
}

Required Methods§

Source

fn identifier(&self) -> MraphicsID

Returns the unique identifier of this mesh.

Source

fn build_instance(&self) -> RenderInstance

Builds a RenderInstance using this mesh’s data.

Provided Methods§

Source

fn update(&mut self)

Updates self before updating the render instance, optional.

Implementors§

Source§

impl MeshLike for Mobject2D

Source§

impl MeshLike for Point3D

Source§

impl<G, M> MeshLike for Mesh<G, M>
where G: Geometry, M: Material,