MCPcopy Create free account
hub / github.com/axmolengine/axmol / loadMeshDatas

Method loadMeshDatas

core/3d/Bundle3D.cpp:366–392  ·  view source on GitHub ↗

since 3.3, to support reskin

Source from the content-addressed store, hash-verified

364
365// since 3.3, to support reskin
366bool Bundle3D::loadMeshDatas(MeshDatas& meshdatas)
367{
368 meshdatas.resetData();
369 if (_isBinary)
370 {
371 if (_version == "0.1" || _version == "0.2")
372 {
373 return loadMeshDatasBinary_0_1(meshdatas);
374 }
375 else
376 {
377 return loadMeshDatasBinary(meshdatas);
378 }
379 }
380 else
381 {
382 if (_version == "1.2" || _version == "0.2")
383 {
384 return loadMeshDataJson_0_1(meshdatas);
385 }
386 else
387 {
388 return loadMeshDatasJson(meshdatas);
389 }
390 }
391 return true;
392}
393bool Bundle3D::loadMeshDatasBinary(MeshDatas& meshdatas)
394{
395 if (!seekToFirstType(BUNDLE_TYPE_MESH))

Callers 2

getTrianglesListMethod · 0.80
loadFromFileMethod · 0.80

Calls 2

loadMeshDataJson_0_1Function · 0.85
resetDataMethod · 0.45

Tested by

no test coverage detected