The stage object is the root of the displaylist. It holds all displayObjects, that should be rendered to the screen. The stage itself is a displayObjectContainer, so it is possible to add and remove displayObjects to it.

The stage handels mainly the render process and interaction model. Every displayObject we added to him will be make to be part of this.

Adding one component:

ConcretDisplayObject* displayObject = new ConcretDisplayObject();
_stage->addChild( displayObject );

Removing one component:

_stage->removeChild( displayObject );

Last edited Mar 25, 2013 at 8:16 PM by TypeOverride, version 6


No comments yet.