From 834d4e1e3ec137cf54143829b6f5bb47e094f3f9 Mon Sep 17 00:00:00 2001 From: ThorstenB Date: Mon, 26 Mar 2012 21:21:41 +0200 Subject: [PATCH] CameraGroup: adapt order of member vars to their init sequence. (Avoids flood of "init sequence" GCC warnings, whenever CameraGroup.hxx is included anywhere) --- src/Main/CameraGroup.hxx | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/src/Main/CameraGroup.hxx b/src/Main/CameraGroup.hxx index 75ff12ac5..17c0ad003 100644 --- a/src/Main/CameraGroup.hxx +++ b/src/Main/CameraGroup.hxx @@ -123,6 +123,25 @@ struct CameraInfo : public osg::Referenced /** Properties of the camera. @see CameraGroup::Flags. */ unsigned flags; + + /** Viewport parameters. + */ + double x; + double y; + double width; + double height; + /** Physical size parameters. + */ + double physicalWidth; + double physicalHeight; + double bezelHeightTop; + double bezelHeightBottom; + double bezelWidthLeft; + double bezelWidthRight; + /** The parent camera for relative camera configurations. + */ + unsigned relativeCameraParent; + /** the camera objects */ CameraMap cameras; @@ -142,31 +161,13 @@ struct CameraInfo : public osg::Referenced //osg::ref_ptr bloomOffset[2]; osg::ref_ptr projInverse; osg::ref_ptr viewInverse; + osg::ref_ptr view; osg::ref_ptr du; osg::ref_ptr dv; - osg::ref_ptr view; void setMatrices( osg::Camera* c ); osgUtil::RenderBin::RenderBinList savedTransparentBins; - - /** Viewport parameters. - */ - double x; - double y; - double width; - double height; - /** Physical size parameters. - */ - double physicalWidth; - double physicalHeight; - double bezelHeightTop; - double bezelHeightBottom; - double bezelWidthLeft; - double bezelWidthRight; - /** The parent camera for relative camera configurations. - */ - unsigned relativeCameraParent; /** The reference points in the parents projection space. */ osg::Vec2d parentReference[2];