25 Nov 2015, 0:34
(This post was last modified: 25 Nov 2015, 0:40 by Flávio San.)
Hello!
I know that when I use AddGraphNode the engine does automatically clear the GraphNode when OnDeInit is called.
In the Tutorial #03: Pong the "Dashed Midline" is not using AddGraphNode, but only mBallTransform.GetReference(root, "line_"+Util::UInt32ToString(i));.
My question is: "Dashed Midline" doesn't need use AddGraphNode to clear the memory?
I know that when I use AddGraphNode the engine does automatically clear the GraphNode when OnDeInit is called.
In the Tutorial #03: Pong the "Dashed Midline" is not using AddGraphNode, but only mBallTransform.GetReference(root, "line_"+Util::UInt32ToString(i));.
My question is: "Dashed Midline" doesn't need use AddGraphNode to clear the memory?
Tutorial #01: Cube Wrote:In order to manage references in a more comfortable way, the BaseProcessor class offers the convenient method AddGraphNode(). This method keeps track of all requested references and passes the responsibility of removing references on to the BaseProcessor itself. All tracked references are released automatically, when the BaseProcessor's destructor is called.
✠ nnDnn ✠ The peace of Christ! ✠ nnDnn ✠