MCPcopy Create free account
hub / github.com/axmolengine/axmol / getGroupID

Method getGroupID

core/renderer/GroupCommand.cpp:44–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44int GroupCommandManager::getGroupID()
45{
46 // Reuse old id
47 if (!_unusedIDs.empty())
48 {
49 int groupID = *_unusedIDs.rbegin();
50 _unusedIDs.pop_back();
51 _groupMapping[groupID] = true;
52 return groupID;
53 }
54
55 // Create new ID
56 // int newID = _groupMapping.size();
57 int newID = Director::getInstance()->getRenderer()->createRenderQueue();
58 _groupMapping[newID] = true;
59
60 return newID;
61}
62
63void GroupCommandManager::releaseGroupID(int groupID)
64{

Callers 2

GroupCommandMethod · 0.80
initMethod · 0.80

Calls 6

getInstanceFunction · 0.85
createRenderQueueMethod · 0.80
getRendererMethod · 0.80
emptyMethod · 0.45
rbeginMethod · 0.45
pop_backMethod · 0.45

Tested by

no test coverage detected