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

Function DestroyModel

engine/modelc/src/modelimporter.cpp:110–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110static void DestroyModel(Model* model)
111{
112 free((void*)model->m_Name);
113 for (uint32_t i = 0; i < model->m_Meshes.Size(); ++i)
114 DestroyMesh(&model->m_Meshes[i]);
115 model->m_Meshes.SetCapacity(0);
116}
117
118static void DestroyNode(Node* node)
119{

Callers 1

ClearSceneFunction · 0.85

Calls 4

freeFunction · 0.85
DestroyMeshFunction · 0.85
SizeMethod · 0.45
SetCapacityMethod · 0.45

Tested by

no test coverage detected