MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / freePool

Function freePool

TheForceEngine/TFE_Asset/modelAsset_jedi.cpp:288–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286 }
287
288 void freePool(AssetPool pool)
289 {
290 // Memory will get freed with the memory region automatically.
291 s_models[pool].clear();
292
293 // free the memory of each models' drawId object
294 const size_t count = s_modelList[pool].size();
295 JediModel** models = s_modelList[pool].data();
296 for (size_t i = 0; i < count; i++)
297 {
298 free(models[i]->drawId);
299 }
300
301 s_modelList[pool].clear();
302 s_modelNames[pool].clear();
303 }
304
305 void serializeModels(Stream* stream)
306 {

Callers 3

serializeModelsFunction · 0.70
freeAllFunction · 0.70
freeLevelDataFunction · 0.70

Calls 4

dataMethod · 0.80
freeFunction · 0.70
clearMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected