Better vertex definitions
This commit is contained in:
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user