From d6a6caa5c52e3c9be775c269b8d221fd2f13f744 Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Tue, 26 May 2026 20:08:14 -0400 Subject: Fix mesh on wasm32 --- crates/teleia/src/mesh.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'crates') diff --git a/crates/teleia/src/mesh.rs b/crates/teleia/src/mesh.rs index 536058d..b41e36d 100644 --- a/crates/teleia/src/mesh.rs +++ b/crates/teleia/src/mesh.rs @@ -9,12 +9,14 @@ pub const ATTRIB_JOINT: u32 = 3; pub const ATTRIB_WEIGHT: u32 = 4; pub const ATTRIB_COLOR: u32 = 5; +type Buffer = ::Buffer; + pub struct Mesh { pub vao: glow::VertexArray, - pub vbo_vertex: glow::NativeBuffer, - pub vbo_index: glow::NativeBuffer, - pub vbo_normal: Option, - pub vbo_texcoord: Option, + pub vbo_vertex: Buffer, + pub vbo_index: Buffer, + pub vbo_normal: Option, + pub vbo_texcoord: Option, pub mode: u32, // glow::TRIANGLES, etc. pub index_count: usize, pub index_type: u32, // glow::BYTE, glow::FLOAT, etc. -- cgit v1.2.3