From 195726b1d048d6fa639fdc068ca358aa9f0da091 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Thu, 28 Jul 2022 15:20:47 -0400 Subject: [PATCH] Make vertex members public, and repr(C) --- src/model.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/model.rs b/src/model.rs index c42ec92..6ed57e2 100755 --- a/src/model.rs +++ b/src/model.rs @@ -290,13 +290,14 @@ struct VertexElement { } #[derive(Clone)] +#[repr(C)] pub struct Vertex { - position : [f32; 3], - uv: [f32; 2], - normal: [f32; 3], + pub position : [f32; 3], + pub uv: [f32; 2], + pub normal: [f32; 3], - bone_weight: [f32; 4], - bone_id : [u8; 4] + pub bone_weight: [f32; 4], + pub bone_id : [u8; 4] } pub struct Part {