Skip to main content

Mesh

Trait Mesh 

Source
pub trait Mesh {
    // Required methods
    fn attachments(&self) -> Vec<AttachedAttributes<'_>>;
    fn draw(
        &self,
        ctx: &mut Context,
        draw_range: Range<usize>,
        draw_mode: DrawMode,
        instance_count: usize,
    );
}

Required Methods§

Source

fn attachments(&self) -> Vec<AttachedAttributes<'_>>

Source

fn draw( &self, ctx: &mut Context, draw_range: Range<usize>, draw_mode: DrawMode, instance_count: usize, )

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Mesh for &MultiMesh<'_>

Source§

impl<'a> Mesh for MultiMesh<'a>

Source§

impl<V: Vertex> Mesh for &VertexMesh<V>

Source§

impl<V: Vertex> Mesh for VertexMesh<V>

Source§

impl<V: Vertex, I: Index> Mesh for &IndexedMesh<V, I>

Source§

impl<V: Vertex, I: Index> Mesh for IndexedMesh<V, I>