pub fn from_chunk<F: Facade>(
        chunk: &Chunk,
        offset: AxialPoint,
        chunk_renderer: Rc<ChunkRenderer>,
        facade: &F,
    ) -> Self {
        let (raw_buf, raw_indices) = get_vertices(chunk);

        ChunkView {
            offset: offset,
            renderer: chunk_renderer,
            vertex_buf: VertexBuffer::new(facade, &raw_buf).unwrap(),
            index_buf: IndexBuffer::new(facade, PrimitiveType::TrianglesList, &raw_indices)
                .unwrap(),
        }
    }
/// Creates the graphical representation of given chunk at the given chunk
/// offset
Creates the graphical representation of given chunk at the given chunk
offset
Creates the graphical representation of given chunk at the given chunk offset
pub fn from_chunk<F: Facade>(
        chunk: &Chunk,
        offset: AxialPoint,
        chunk_renderer: Rc<ChunkRenderer>,
        facade: &F,
    ) -> Self {
        let (raw_buf, raw_indices) = get_vertices(chunk);
        ChunkView {
            offset: offset,
            renderer: chunk_renderer,
            vertex_buf: VertexBuffer::new(facade, &raw_buf).unwrap(),
            index_buf: IndexBuffer::new(facade, PrimitiveType::TrianglesList, &raw_indices)
                .unwrap(),
        }
    }
pub fn from_chunk < F : Facade > ( chunk : & Chunk , offset : AxialPoint , chunk_renderer : Rc < ChunkRenderer > , facade : & F , ) -> Self { let ( raw_buf , raw_indices ) = get_vertices ( chunk ) ; ChunkView { offset : offset , renderer : chunk_renderer , vertex_buf : VertexBuffer :: new ( facade , & raw_buf ) . unwrap ( ) , index_buf : IndexBuffer :: new ( facade , PrimitiveType :: TrianglesList , & raw_indices ) . unwrap ( ) , } }
Creates the graphical representation of given chunk at the given chunk
offset
Creates the graphical representation of given chunk at the given chunk offset
chunk
&Chunk
offset
AxialPoint
chunk_renderer
Rc<ChunkRenderer>
facade
&F