Various work on osgViewer library, including warp point and graphics window resize support
This commit is contained in:
@@ -59,8 +59,8 @@ class OSG_EXPORT View : public virtual osg::Referenced
|
||||
}
|
||||
|
||||
osg::ref_ptr<osg::Camera> _camera;
|
||||
osg::Matrixd _projectionOffset;
|
||||
osg::Matrixd _viewOffset;
|
||||
osg::Matrixd _projectionOffset;
|
||||
osg::Matrixd _viewOffset;
|
||||
};
|
||||
|
||||
bool addSlave(osg::Camera* camera) { return addSlave(camera, osg::Matrix::identity(), osg::Matrix::identity()); }
|
||||
@@ -73,8 +73,12 @@ class OSG_EXPORT View : public virtual osg::Referenced
|
||||
|
||||
Slave& getSlave(unsigned int pos) { return _slaves[pos]; }
|
||||
const Slave& getSlave(unsigned int pos) const { return _slaves[pos]; }
|
||||
|
||||
Slave* findSlaveForCamera(osg::Camera* camera);
|
||||
|
||||
void updateSlaves();
|
||||
|
||||
void updateSlave(unsigned int i);
|
||||
|
||||
protected :
|
||||
|
||||
|
||||
Reference in New Issue
Block a user