[][src]Struct rendy_mesh::Mesh

pub struct Mesh<B: Backend> { /* fields omitted */ }

Single mesh is a collection of buffers that provides available attributes. Exactly one mesh is used per drawing call in common.

Methods

impl<B> Mesh<B> where
    B: Backend
[src]

pub fn builder<'a>() -> MeshBuilder<'a>[src]

Build new mesh with MeshBuilder

pub fn primitive(&self) -> Primitive[src]

gfx_hal::Primitive type of the Mesh

pub fn len(&self) -> u32[src]

Get number of vertices in mesh.

pub fn bind<'a, C>(
    &'a self,
    formats: &[VertexFormat],
    encoder: &mut EncoderCommon<B, C>
) -> Result<u32, Incompatible> where
    C: Supports<Graphics>, 
[src]

Bind buffers to specified attribute locations.

Trait Implementations

impl<B: Debug + Backend> Debug for Mesh<B>[src]

Auto Trait Implementations

impl<B> Send for Mesh<B> where
    <B as Backend>::Buffer: Send + Sync

impl<B> Sync for Mesh<B> where
    <B as Backend>::Buffer: Send + Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Supports for T[src]

impl<T> Erased for T