MCPcopy Create free account
hub / github.com/crownengine/crown / compile

Function compile

src/resource/mesh_resource.cpp:401–407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

399namespace mesh_resource_internal
400{
401 s32 compile(CompileOptions &opts)
402 {
403 Mesh mesh(default_allocator());
404 s32 err = mesh::parse(mesh, opts);
405 ENSURE_OR_RETURN(MESH_RESOURCE, err == 0, opts);
406 return mesh::write(mesh, opts);
407 }
408
409} // namespace mesh_resource_internal
410#endif // if CROWN_CAN_COMPILE

Callers

nothing calls this directly

Calls 2

parseFunction · 0.70
writeFunction · 0.70

Tested by

no test coverage detected