Show
Ignore:
Timestamp:
05/02/06 11:45:31 (9 years ago)
Author:
robert
Message:

Reorganised the Group::removeChild and Geode::removeDrawable methods so
that removeChild(Node*), removeChild(uint) and equivilant Geode methods are
now inline methods, not designed to be overriden, and seperated out the
multiple remove method to be called removeChildren(uint, uint) which is
now the only virtual method. There removeChildren is now the method to
override in subclasses.

This reorganisation requires some call code to be rename removeChild usage
to removeChildren.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgfxbrowser/osgfxbrowser.cpp

    r4805 r5122  
    181181 
    182182            if (_scene.valid() && _root.valid()) { 
    183                 _root->removeChild(0, _root->getNumChildren()); 
     183                _root->removeChildren(0, _root->getNumChildren()); 
    184184                osg::ref_ptr<osgFX::Effect> effect = _effects[_selected_fx].get(); 
    185185                effect->setEnabled(_fxen); 
    186                 effect->removeChild(0, effect->getNumChildren()); 
     186                effect->removeChildren(0, effect->getNumChildren()); 
    187187                effect->addChild(_scene.get()); 
    188188                effect->setUpDemo();