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

Method draw

tests/cpp-tests/Source/RendererTest/RendererTest.cpp:209–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209void SpriteInGroupCommand::draw(Renderer* renderer, const Mat4& transform, uint32_t flags)
210{
211 AXASSERT(renderer, "Render is null");
212 auto * spriteWrapperCommand = renderer->getNextGroupCommand();
213 spriteWrapperCommand->init(_globalZOrder);
214 renderer->addCommand(spriteWrapperCommand);
215 renderer->pushGroup(spriteWrapperCommand->getRenderQueueID());
216 Sprite::draw(renderer, transform, flags);
217 renderer->popGroup();
218}
219
220GroupCommandTest::GroupCommandTest()
221{

Callers

nothing calls this directly

Calls 6

drawFunction · 0.85
getNextGroupCommandMethod · 0.80
pushGroupMethod · 0.80
popGroupMethod · 0.80
initMethod · 0.45
addCommandMethod · 0.45

Tested by

no test coverage detected