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

Function parse_internal

src/resource/mesh_skeleton.cpp:23–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21namespace mesh_skeleton
22{
23 static s32 parse_internal(AnimationSkeleton &s, Buffer &buf, CompileOptions &opts)
24 {
25 TempAllocator4096 ta;
26 JsonObject obj(ta);
27 RETURN_IF_ERROR(sjson::parse(obj, buf));
28
29 DynamicString source(ta);
30 RETURN_IF_ERROR(sjson::parse_string(source, obj["source"]));
31
32 RETURN_IF_FILE_MISSING(MESH_SKELETON, source.c_str(), opts);
33 Buffer fbx_buf = opts.read(source.c_str());
34 return fbx::parse(s, fbx_buf, opts);
35 }
36
37 s32 parse(AnimationSkeleton &s, const char *path, CompileOptions &opts)
38 {

Callers 1

parseFunction · 0.70

Calls 4

parseFunction · 0.70
parse_stringFunction · 0.50
c_strMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected