Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use glium::{VertexBuffer, IndexBuffer};

#[derive(Copy, Clone)]
pub struct Vertex {
    pub position: [f32; 3],
    pub barycentric: [f32; 3],
    pub color: [f32; 3],
    pub border: [f32; 3],
}

implement_vertex!(Vertex, position, barycentric, color, border);

pub struct Mesh {
    pub vertices: VertexBuffer<Vertex>,
    pub indices: IndexBuffer<u32>,
}