From David Callu, added findSlaveIndexForCamera method
This commit is contained in:
@@ -118,23 +118,25 @@ class OSG_EXPORT View : public osg::Object
|
||||
bool addSlave(osg::Camera* camera, const osg::Matrix& projectionOffset, const osg::Matrix& viewOffse, bool useMastersSceneData=true);
|
||||
|
||||
bool removeSlave(unsigned int pos);
|
||||
|
||||
|
||||
unsigned int getNumSlaves() const { return _slaves.size(); }
|
||||
|
||||
Slave& getSlave(unsigned int pos) { return _slaves[pos]; }
|
||||
const Slave& getSlave(unsigned int pos) const { return _slaves[pos]; }
|
||||
|
||||
Slave* findSlaveForCamera(osg::Camera* camera);
|
||||
|
||||
unsigned int findSlaveIndexForCamera(osg::Camera* camera);
|
||||
|
||||
Slave * findSlaveForCamera(osg::Camera* camera);
|
||||
|
||||
void updateSlaves();
|
||||
|
||||
|
||||
void updateSlave(unsigned int i);
|
||||
|
||||
|
||||
protected :
|
||||
|
||||
|
||||
virtual ~View();
|
||||
|
||||
|
||||
virtual osg::GraphicsOperation* createRenderer(osg::Camera*) { return 0; }
|
||||
|
||||
osg::ref_ptr<osg::Stats> _stats;
|
||||
|
||||
Reference in New Issue
Block a user