Home -> IProgramNode -> SetChildNodes
Description
The SetChildNodes method replaces any existing IStateGroupNode 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. During the rendering process, each IStateGroupNode is processed in the order it is supplied.
Usage
void SetChildNodes(IStateGroupNode* const* childNodes, size_t childNodeCount);
void SetChildNodes(IStateGroupNode::unique_ptr const* childNodes, size_t childNodeCount);
Argument list
- childNodes [IStateGroupNode* const* / IStateGroupNode::unique_ptr const*]
- The set of IStateGroupNode objects to set as the list of child nodes
- childNodeCount [size_t]
- The number of IStateGroupNode entries to read from the childNodes array