halfway through imgui, the context is really not ergonomic

This commit is contained in:
2021-02-14 18:07:26 -08:00
parent 60ab3bebd8
commit 2370ce4974
6 changed files with 209 additions and 94 deletions

View File

@@ -61,17 +61,4 @@ pub fn import_mesh(mesh_path: &str) -> (Vec<Vertex>, Vec<u32>) {
}
(vertex_data.to_vec(), index_data.to_vec())
}
pub fn create_plane(size: f32) -> (Vec<Vertex>, Vec<u32>) {
let vertex_data = [
vertex([size, -size, 0.0], [0.0, 0.0, 1.0]),
vertex([size, size, 0.0], [0.0, 0.0, 1.0]),
vertex([-size, -size, 0.0], [0.0, 0.0, 1.0]),
vertex([-size, size, 0.0], [0.0, 0.0, 1.0]),
];
let index_data: &[u32] = &[0, 1, 2, 2, 1, 3];
(vertex_data.to_vec(), index_data.to_vec())
}