cocos2d-x-3.0 draw vs onDraw
I'm using cocos2d-x v3.0 and in some test project I'm doing some custom drawing by overriding Node 's draw method, but in the DrawPrimitives example provided they do something like this: void DrawPrimitivesTest::draw() { _customCommand.init(_globalZOrder); _customCommand.func = CC_CALLBACK_0(DrawPrimitivesTest::onDraw, this); Director::getInstance()->getRenderer()->addCommand(&_customCommand); } void DrawPrimitivesTest::onDraw() { // drawing code here, why? } From reading the header and source files it seems like this may be some way of sending render commands straight to the renderer, is that