#ifndef CAMERAGROUP_HXX
#define CAMERAGROUP_HXX 1
+#include <map>
#include <string>
#include <vector>
#include <osg/ref_ptr>
#include <osg/Referenced>
#include <osg/Node>
+#include <osg/TextureRectangle>
// For osgUtil::LineSegmentIntersector::Intersections, which is a typedef.
#include <osgUtil/LineSegmentIntersector>
/** Update camera properties after a resize event.
*/
void resized();
+
+ void buildDistortionCamera(const SGPropertyNode* psNode,
+ osg::Camera* camera);
protected:
CameraList _cameras;
osg::ref_ptr<osgViewer::Viewer> _viewer;
static osg::ref_ptr<CameraGroup> _defaultGroup;
+ // Near, far for the master camera if used.
+ float _zNear;
+ float _zFar;
+ float _nearField;
+ typedef std::map<std::string, osg::ref_ptr<osg::TextureRectangle> > TextureMap;
+ TextureMap _textureTargets;
};
}