pub fn build(self, fac: &mut Factory) -> Result<Mesh> {
        use gfx::IndexBuffer;
        let count = self.vertices.len();

        let slice = Slice {
            start: 0,
            end: count as u32,
            base_vertex: 0,
            instances: None,
            buffer: IndexBuffer::Auto,
        };

        Ok(Mesh {
            slice: slice,
            transform: self.transform,
            vbufs: self.vertices.build(fac)?.collect(),
        })
    }
/// Builds and returns the new mesh.
Builds and returns the new mesh.
Builds and returns the new mesh .
pub fn build(self, fac: &mut Factory) -> Result<Mesh> {
        use gfx::IndexBuffer;
        let count = self.vertices.len();
        let slice = Slice {
            start: 0,
            end: count as u32,
            base_vertex: 0,
            instances: None,
            buffer: IndexBuffer::Auto,
        };
        Ok(Mesh {
            slice: slice,
            transform: self.transform,
            vbufs: self.vertices.build(fac)?.collect(),
        })
    }
pub fn build ( self , fac : & mut Factory ) -> Result < Mesh > { use gfx :: IndexBuffer ; let count = self . vertices . len ( ) ; let slice = Slice { start : 0 , end : count as u32 , base_vertex : 0 , instances : None , buffer : IndexBuffer :: Auto , } ; Ok ( Mesh { slice : slice , transform : self . transform , vbufs : self . vertices . build ( fac ) ? . collect ( ) , } ) }
Builds and returns the new mesh.
Builds and returns the new mesh .
self
fac
&mut Factory
self
fac
&mut Factory