|
@@ -22,8 +22,9 @@ fn main() {
|
|
|
let bytes = fs::read(path)
|
|
let bytes = fs::read(path)
|
|
|
.expect("Failed to read file");
|
|
.expect("Failed to read file");
|
|
|
let atlas = DummyAtlas;
|
|
let atlas = DummyAtlas;
|
|
|
- let (vertices, indices) = MeshReader::new::<BasicVertex>(&atlas, Some(""))
|
|
|
|
|
|
|
+ let (features, vertices, indices) = MeshReader::new::<BasicVertex>(&atlas, Some(""))
|
|
|
.read::<BasicVertex>(&bytes)
|
|
.read::<BasicVertex>(&bytes)
|
|
|
.expect("Failed to read mesh data");
|
|
.expect("Failed to read mesh data");
|
|
|
|
|
+ println!("Mesh features {features:?}");
|
|
|
println!("Got {} vertices and {} indices", vertices.len(), indices.len());
|
|
println!("Got {} vertices and {} indices", vertices.len(), indices.len());
|
|
|
}
|
|
}
|