MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / ClearShapes

Function ClearShapes

engine/Poseidon/World/Scene/SceneDraw.cpp:2024–2037  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2022#if DO_STAT
2023 Shadow.Count(oi->shape->Name());
2024#endif
2025}
2026
2027// different global variables
2028
2029void ManCleanUp();
2030
2031void ClearShapes()
2032{
2033 VehicleTypes.Clear();
2034 // WeaponInfos.Clear();
2035 RoadTypes.Clear();
2036 // log any shape still resident in the cache at shutdown (refs would
2037 // be from cache itself plus any holdouts on the entity side).
2038 Shapes.ForEach([](LODShapeWithShadow& shape)
2039 { Log("Shape %s not released (%d refs).", shape.Name(), shape.RefCounter()); });
2040 Shapes.Clear();

Callers 1

ClearMethod · 0.85

Calls 4

ClearMethod · 0.45
ForEachMethod · 0.45
NameMethod · 0.45
RefCounterMethod · 0.45

Tested by

no test coverage detected