indexed drawing

This commit is contained in:
2019-07-26 22:54:40 +02:00
parent 3bb9c40749
commit 5fdd99b051
4 changed files with 109 additions and 16 deletions

View File

@@ -67,15 +67,12 @@ impl Game for TestGame {
fn main() {
let mut game = TestGame {};
vulkan::init(vec![
Vertex { position: [0.1, 0.2, 0.2] },
Vertex { position: [0.2, 0.4, 0.2] },
Vertex { position: [0.2, 0.2, 0.3] }
],
vec![
Vertex { position: [-0.9, 1., 0.] },
Vertex { position: [0.9, 0., 0.] },
],
&mut game
vulkan::init(
"models/box.obj",
vec![
Vertex { position: [-0.9, 1., 0.] },
Vertex { position: [0.9, 0., 0.] },
],
&mut game
);
}