indexed drawing
This commit is contained in:
17
src/main.rs
17
src/main.rs
@@ -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
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user