glium_shapes 0.1.1

Prefabricated shapes for the Glium OpenGL library.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! A module containing the vertex structure shared across all shapes.

extern crate glium;

/// The vertex structure shared across all shapes.
#[derive(Copy,Clone,Debug)]
pub struct Vertex {
    pub position: [f32; 3],
    pub normal: [f32; 3],
    pub texcoord: [f32; 2],
}

implement_vertex!(Vertex, position, normal, texcoord);