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

Function InitSize

engine/modelc/src/modelimporter_gltf.cpp:539–544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

537
538template <typename T>
539static void InitSize(dmArray<T>& arr, uint32_t cap, uint32_t size)
540{
541 arr.SetCapacity(cap);
542 arr.SetSize(size);
543 memset(arr.Begin(), 0, sizeof(T)*cap);
544}
545
546static void LoadNodes(Scene* scene, cgltf_data* gltf_data)
547{

Callers 11

LoadNodesFunction · 0.85
LoadSamplersFunction · 0.85
LoadImagesFunction · 0.85
LoadTexturesFunction · 0.85
LoadMaterialsFunction · 0.85
LoadPrimitivesFunction · 0.85
LoadMeshesFunction · 0.85
SortSkinBonesFunction · 0.85
LoadSkinsFunction · 0.85
LoadAnimationsFunction · 0.85
LoadGltfFromBufferFunction · 0.85

Calls 3

SetCapacityMethod · 0.45
SetSizeMethod · 0.45
BeginMethod · 0.45

Tested by

no test coverage detected