Added sprite and better vertex format. works, but now I lost texturing
This commit is contained in:
13
src/vertex_2d.rs
Normal file
13
src/vertex_2d.rs
Normal 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);
|
||||
Reference in New Issue
Block a user