Update 'src/model/mesh.rs'
parent
3dcc3bd3e7
commit
8c75d1ee43
|
@ -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.
|
// 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
|
// 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()
|
// necessary though because of the `offset!` macro used below in setupMesh()
|
||||||
|
#[repr(C)]
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub struct Vertex {
|
pub struct Vertex {
|
||||||
// position
|
// position
|
||||||
|
|
Loading…
Reference in New Issue