Modules§
Functions§
- gltforge_
export_ ⚠add_ mesh - Add a mesh to the export context. Returns the mesh index.
- gltforge_
export_ ⚠add_ node - Add a node (GameObject) to the export context. Returns the node index.
- gltforge_
export_ begin - Create a new export context.
- gltforge_
export_ ⚠finish - Build and write the
.gltfand.binfiles.pathis the output.gltffile path (null-terminated UTF-8). Returns1on success,0on failure. Consumes and frees the context in both cases. - gltforge_
export_ ⚠finish_ glb - Build and write a single
.glbfile (binary glTF).pathis the output.glbfile path (null-terminated UTF-8). Returns1on success,0on failure. Consumes and frees the context in both cases. - gltforge_
export_ ⚠free - Free an export context without writing any files.
- gltforge_
export_ ⚠mesh_ add_ submesh_ u16 - Add a sub-mesh with 16-bit indices to mesh
mesh_idx. - gltforge_
export_ ⚠mesh_ add_ submesh_ u32 - Add a sub-mesh with 32-bit indices to mesh
mesh_idx. - gltforge_
export_ ⚠mesh_ set_ normals - Set vertex normals for mesh
mesh_idx.ptrpoints tof32_countfloats as tightly packed[x, y, z]triples (Unity space). - gltforge_
export_ ⚠mesh_ set_ positions - Set vertex positions for mesh
mesh_idx.ptrpoints tof32_countfloats as tightly packed[x, y, z]triples (Unity space). - gltforge_
export_ ⚠mesh_ set_ uvs - Set a UV channel for mesh
mesh_idx.channelis 0-based.ptrpoints tof32_countfloats as[u, v]pairs (Unity space). - gltforge_
export_ ⚠node_ set_ mesh - Attach mesh
mesh_idxto nodenode_idx.