Mesh

Trait Mesh 

Source
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.

Required Methods§

Source

fn vertices(&self) -> &[Vertex]

Source

fn indices(&self) -> &[u32]

Source

fn material(&self) -> &Arc<Material>

Source

fn transform(&self) -> &Matrix4<f32>

Source

fn scissor(&self) -> Rect2D

Implementors§