pub trait Mesh {
// Required methods
fn vertices(&self) -> &[Vertex];
fn indices(&self) -> &[u32];
fn material(&self) -> &Arc<Material>;
fn transform(&self) -> &Matrix4<f32>;
fn scissor(&self) -> Rect2D;
}Expand description
A Mesh is the minimal unit of rendering.
Data is streamed from the CPU to the GPU each frame from each Mesh.