Esempio n. 1
0
 void DiCullNode::RemoveAllChildren( void )
 {
     for (size_t i = 0; i < mChildren.size(); ++i)
     {
         DiCullNode* on = static_cast<DiCullNode*>(mChildren[i]);
         on->SetParent(nullptr);
         on->RemoveNodeAndChildren();
     }
     mChildren.clear();
     mChildrenToUpdate.clear();
 }
Esempio n. 2
0
 DiNode* DiCullNode::RemoveChild( unsigned short index )
 {
     DiCullNode *on = static_cast<DiCullNode* >( DiNode::RemoveChild( index ) );
     on->RemoveNodeAndChildren(); 
     return on; 
 }
Esempio n. 3
0
 DiNode* DiCullNode::RemoveChild( const DiString & name )
 {
     DiCullNode *on = static_cast<DiCullNode*>( DiNode::RemoveChild(  name ) );
     on->RemoveNodeAndChildren( ); 
     return on; 
 }