]> git.mxchange.org Git - flightgear.git/commitdiff
CameraGroup: adapt order of member vars to their init sequence.
authorThorstenB <brehmt@gmail.com>
Mon, 26 Mar 2012 19:21:41 +0000 (21:21 +0200)
committerThorstenB <brehmt@gmail.com>
Mon, 26 Mar 2012 19:21:41 +0000 (21:21 +0200)
(Avoids flood of "init sequence" GCC warnings, whenever CameraGroup.hxx
is included anywhere)

src/Main/CameraGroup.hxx

index 75ff12ac570fa9c8b9f11faca41d3cc6e5cc2104..17c0ad00329834b5e41f85bd76c92a0a81525078 100644 (file)
@@ -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<osg::Uniform> bloomOffset[2];
     osg::ref_ptr<osg::Uniform> projInverse;
     osg::ref_ptr<osg::Uniform> viewInverse;
+    osg::ref_ptr<osg::Uniform> view;
     osg::ref_ptr<osg::Uniform> du;
     osg::ref_ptr<osg::Uniform> dv;
-    osg::ref_ptr<osg::Uniform> 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];