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

Function DestroyMaterial

engine/modelc/src/modelimporter.cpp:158–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158static void DestroyMaterial(Material* material)
159{
160 free((void*)material->m_Name);
161 delete material->m_PbrMetallicRoughness;
162 delete material->m_PbrSpecularGlossiness;
163 delete material->m_Clearcoat;
164 delete material->m_Ior;
165 delete material->m_Specular;
166 delete material->m_Sheen;
167 delete material->m_Transmission;
168 delete material->m_Volume;
169 delete material->m_EmissiveStrength;
170 delete material->m_Iridescence;
171}
172
173static void DestroyBuffer(Buffer* buffer)
174{

Callers 1

ClearSceneFunction · 0.85

Calls 1

freeFunction · 0.85

Tested by

no test coverage detected