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

Method addCallbackCommand

core/renderer/Renderer.cpp:224–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224void Renderer::addCallbackCommand(std::function<void()> func, float globalZOrder)
225{
226 auto cmd = nextCallbackCommand();
227 cmd->init(globalZOrder);
228 cmd->func = std::move(func);
229 addCommand(cmd);
230}
231
232void Renderer::addCommand(RenderCommand* command)
233{

Callers 6

beforeDrawMethod · 0.80
afterDrawMethod · 0.80
drawMethod · 0.80
drawMethod · 0.80
beforeDrawMethod · 0.80
afterDrawMethod · 0.80

Calls 1

initMethod · 0.45

Tested by 2

drawMethod · 0.64
drawMethod · 0.64