Show
Ignore:
Timestamp:
05/01/05 21:48:49 (9 years ago)
Author:
robert
Message:

Moved osg::Impostor to osgSim::Impostor, as Impostor isn't a core feature.

Files:
1 modified

Legend:

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

    r1844 r4135  
    11#include <osg/Geometry> 
    2 #include <osg/Impostor> 
    32#include <osg/Material> 
    43#include <osg/MatrixTransform> 
     
    65#include <osg/Geode> 
    76 
    8 #include <osgUtil/InsertImpostorsVisitor> 
     7#include <osgSim/Impostor> 
     8#include <osgSim/InsertImpostorsVisitor> 
    99 
    1010#include <osgDB/ReadFile> 
     
    197197                if (UseImpostor) 
    198198                { 
    199                         osg::Impostor * impostor = new osg::Impostor(); 
     199                        osgSim::Impostor * impostor = new osgSim::Impostor(); 
    200200                        impostor->setImpostorThreshold(static_cast<float> (Threshold)); 
    201201                        impostor->addChild(groups[i]); 
     
    259259    if (model) 
    260260    { 
    261         // the osgUtil::InsertImpostorsVisitor used lower down to insert impostors 
     261        // the osgSim::InsertImpostorsVisitor used lower down to insert impostors 
    262262        // only operators on subclass of Group's, if the model top node is not 
    263263        // a group then it won't be able to insert an impostor.  We therefore 
     
    269269            { 
    270270 
    271                 osg::Impostor* impostor = new osg::Impostor; 
     271                osgSim::Impostor* impostor = new osgSim::Impostor; 
    272272 
    273273                // standard LOD settings 
     
    296296 
    297297        // now insert impostors in the model using the InsertImpostorsVisitor. 
    298         osgUtil::InsertImpostorsVisitor ov; 
     298        osgSim::InsertImpostorsVisitor ov; 
    299299 
    300300        // traverse the model and collect all osg::Group's and osg::LOD's.