MCPcopy Create free account
hub / github.com/axmolengine/axmol / ~RenderCommandPool

Method ~RenderCommandPool

core/renderer/RenderCommandPool.h:41–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39public:
40 RenderCommandPool() {}
41 ~RenderCommandPool()
42 {
43 // if( 0 != _usedPool.size())
44 // {
45 // AXLOGD("All RenderCommand should not be used when Pool is released!");
46 // }
47 _freePool.clear();
48 for (auto&& allocatedPoolBlock : _allocatedPoolBlocks)
49 {
50 delete[] allocatedPoolBlock;
51 allocatedPoolBlock = nullptr;
52 }
53 _allocatedPoolBlocks.clear();
54 }
55
56 T* generateCommand()
57 {

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected