vox/src/vertex.rs

13 lines
325 B
Rust

#[derive(Debug, Copy, Clone, Default)]
pub struct ColoredVertex {
pub position: (f32, f32, f32),
pub color: (f32, f32, f32, f32),
}
implement_vertex!(ColoredVertex, position, color);
#[derive(Debug, Copy, Clone, Default)]
pub struct Vertex {
pub position: (f32, f32, f32),
}
implement_vertex!(Vertex, position);