X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FMain%2FCameraGroup.hxx;h=1e18e28e1172702ebd12e8c7c2a826844cc23b1a;hb=38226af24ec01e8f0a20d7fd73ef838a69f6ef25;hp=d44b902266aefc239b90f984329dc13a57ca6999;hpb=8afab2045b352f4d6a0853110df3f2c8b8232350;p=flightgear.git diff --git a/src/Main/CameraGroup.hxx b/src/Main/CameraGroup.hxx index d44b90226..1e18e28e1 100644 --- a/src/Main/CameraGroup.hxx +++ b/src/Main/CameraGroup.hxx @@ -17,6 +17,7 @@ #ifndef CAMERAGROUP_HXX #define CAMERAGROUP_HXX 1 +#include #include #include @@ -24,6 +25,7 @@ #include #include #include +#include // For osgUtil::LineSegmentIntersector::Intersections, which is a typedef. #include @@ -178,10 +180,19 @@ public: /** Update camera properties after a resize event. */ void resized(); + + void buildDistortionCamera(const SGPropertyNode* psNode, + osg::Camera* camera); protected: CameraList _cameras; osg::ref_ptr _viewer; static osg::ref_ptr _defaultGroup; + // Near, far for the master camera if used. + float _zNear; + float _zFar; + float _nearField; + typedef std::map > TextureMap; + TextureMap _textureTargets; }; }