Added sprite and better vertex format. works, but now I lost texturing

This commit is contained in:
2019-08-05 18:08:58 -07:00
parent cce893a0c8
commit 1f33d96ae5
9 changed files with 98 additions and 130 deletions

13
src/vertex_2d.rs Normal file
View File

@@ -0,0 +1,13 @@
#[derive(Default, Debug, Clone)]
pub struct Vertex2D {
pub position: [f32; 2]
}
#[derive(Default, Debug, Clone)]
pub struct ColoredVertex2D {
pub position: [f32; 2],
pub color : [f32; 4],
}
vulkano::impl_vertex!(ColoredVertex2D, position, color);