Home -> IStateGroupNode -> SetChildNodes
Description
The SetChildNodes method replaces any existing IRenderableNode objects which have been added to the list of child nods with the supplied set of objects. The result will be equivalent to what would occur if RemoveAllChildNodes was called, followed by AddChildNodes with the supplied set of objects, except this method will perform the operation in a more efficient manner.
Usage
void SetChildNodes(IRenderableNode* const* childNodes, size_t childNodeCount);
void SetChildNodes(IRenderableNode::unique_ptr const* childNodes, size_t childNodeCount);
Argument list
- childNodes [IRenderableNode* const* / IRenderableNode::unique_ptr const*]
- The set of IRenderableNode objects to set as the list of child nodes
- childNodeCount [size_t]
- The number of IRenderableNode entries to read from the childNodes array