summary refs log tree commit diff
path: root/src/linear_algebra.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/linear_algebra.rs')
-rw-r--r--src/linear_algebra.rs11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/linear_algebra.rs b/src/linear_algebra.rs
index 950877b..9b3ef73 100644
--- a/src/linear_algebra.rs
+++ b/src/linear_algebra.rs
@@ -3,12 +3,15 @@ use std::mem::size_of;
 use vulkanalia::vk::{ self, HasBuilder };
 
 
-pub static VERTICES: [Vertex<f32>; 3] = [
-  Vertex::new(Vec2( 0.0, -0.5), Vec3(1.0, 0.0, 0.0)),
-  Vertex::new(Vec2( 0.5,  0.5), Vec3(0.0, 1.0, 0.0)),
-  Vertex::new(Vec2(-0.5,  0.5), Vec3(0.0, 0.0, 1.0)),
+pub static VERTICES: [Vertex<f32>; 4] = [
+  Vertex::new(Vec2(-0.5, -0.5), Vec3(1.0, 0.0, 0.0)),
+  Vertex::new(Vec2( 0.5, -0.5), Vec3(0.0, 1.0, 0.0)),
+  Vertex::new(Vec2( 0.5,  0.5), Vec3(0.0, 0.0, 1.0)),
+  Vertex::new(Vec2(-0.5,  0.5), Vec3(1.0, 1.0, 1.0)),
 ];
 
+pub const INDICES: &[u16] = &[0, 1, 2, 2, 3, 0];
+
 
 #[derive(Clone, Debug)]
 pub struct Vec2<T>(T, T);