Skip to content

Commit 6855c20

Browse files
Fixed error in bindings.
1 parent af656b9 commit 6855c20

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bindings.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ extern crate cty;
22

33
#[repr(C)]
44
pub struct vx_vertex {
5-
pub v: [f32;3]
5+
pub v: [cty::c_float;3]
66
}
77

88
#[repr(C)]
@@ -27,6 +27,7 @@ pub struct vx_mesh {
2727
pub indices: *mut cty::c_uint,
2828
pub normalindices: *mut cty::c_uint,
2929
pub nindices: cty::size_t,
30+
pub nvertices: cty::size_t,
3031
pub nnormals: cty::size_t
3132
}
3233

0 commit comments

Comments
 (0)