Update 'src/model/mesh.rs'

Objects
Milk.H 2023-05-17 11:22:48 +02:00
parent 3dcc3bd3e7
commit 8c75d1ee43
1 changed files with 1 additions and 0 deletions

View File

@ -16,6 +16,7 @@ use crate::shader::shader;
// NOTE: without repr(C) the compiler may reorder the fields or use different padding/alignment than C.
// Depending on how you pass the data to OpenGL, this may be bad. In this case it's not strictly
// necessary though because of the `offset!` macro used below in setupMesh()
#[repr(C)]
#[derive(Clone)]
pub struct Vertex {
// position