Better vertex definitions

This commit is contained in:
2019-07-26 23:10:48 +02:00
parent 5fdd99b051
commit 96afb5a14b
2 changed files with 30 additions and 18 deletions

View File

@@ -1,4 +1,4 @@
use crate::vulkan::{Vertex, GameData, Game};
use crate::vulkan::{GameData, Game, LinePoint};
use winit::{Event, WindowEvent, ElementState};
use std::iter::FromIterator;
use cgmath::{Matrix4, Rad, Point3, Vector3, Deg};
@@ -70,8 +70,8 @@ fn main() {
vulkan::init(
"models/box.obj",
vec![
Vertex { position: [-0.9, 1., 0.] },
Vertex { position: [0.9, 0., 0.] },
LinePoint { position: [-0.9, 1., 0.] },
LinePoint { position: [0.9, 0., 0.] },
],
&mut game
);