pub trait MeshLike: InstanceUpdater {
// Required methods
fn identifier(&self) -> MraphicsID;
fn build_instance(&self) -> RenderInstance;
// Provided method
fn update(&mut self) { ... }
}Required Methods§
Sourcefn identifier(&self) -> MraphicsID
fn identifier(&self) -> MraphicsID
Returns the unique identifier of this mesh.
Sourcefn build_instance(&self) -> RenderInstance
fn build_instance(&self) -> RenderInstance
Builds a RenderInstance using this mesh’s data.