MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / FreeRendererData

Method FreeRendererData

TombEngine/Renderer/Renderer.cpp:34–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32 }
33
34 void Renderer::FreeRendererData()
35 {
36 _items.resize(0);
37 _effects.resize(0);
38 _moveableObjects.resize(0);
39 _staticObjects.clear();
40 _sprites.resize(0);
41 _rooms.resize(0);
42 _roomTextures.resize(0);
43 _moveablesTextures.resize(0);
44 _staticTextures.resize(0);
45 _spritesTextures.resize(0);
46 _animatedTextures.resize(0);
47 _animatedTextureSets.resize(0);
48
49 _shadowLight = nullptr;
50
51 _dynamicLightList = 0;
52 for (auto& dynamicLightList : _dynamicLights)
53 dynamicLightList.resize(0);
54
55 for (auto& mesh : _meshes)
56 delete mesh;
57 _meshes.resize(0);
58 }
59
60 void Renderer::Lock()
61 {

Callers 1

FreeLevelFunction · 0.80

Calls 2

resizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected