MCPcopy Create free account
hub / github.com/defold/defold / GetResultStr

Function GetResultStr

engine/modelc/src/modelimporter_gltf.cpp:178–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176// }
177
178static const char* GetResultStr(cgltf_result result)
179{
180 switch(result)
181 {
182 case cgltf_result_success: return "cgltf_result_success";
183 case cgltf_result_data_too_short: return "cgltf_result_data_too_short";
184 case cgltf_result_unknown_format: return "cgltf_result_unknown_format";
185 case cgltf_result_invalid_json: return "cgltf_result_invalid_json";
186 case cgltf_result_invalid_gltf: return "cgltf_result_invalid_gltf";
187 case cgltf_result_invalid_options: return "cgltf_result_invalid_options";
188 case cgltf_result_file_not_found: return "cgltf_result_file_not_found";
189 case cgltf_result_io_error: return "cgltf_result_io_error";
190 case cgltf_result_out_of_memory: return "cgltf_result_out_of_memory";
191 case cgltf_result_legacy_gltf: return "cgltf_result_legacy_gltf";
192 default: return "unknown";
193 }
194}
195
196// static const char* GetAnimationPathTypeStr(cgltf_animation_path_type type)
197// {

Callers 2

ValidateGltfFunction · 0.85
LoadGltfFromBufferFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected