]> git.mxchange.org Git - flightgear.git/blobdiff - src/Scenery/scenery.hxx
Don't restore initial screen geometry because there is nothing in fg_os* to resize...
[flightgear.git] / src / Scenery / scenery.hxx
index 996eb8ddcfed7e8fd60a5e044711135450eaa3f4..b24f63a35120952c796ec2249591335cc8c88b92 100644 (file)
@@ -16,7 +16,7 @@
 //
 // You should have received a copy of the GNU General Public License
 // along with this program; if not, write to the Free Software
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 //
 // $Id$
 
 #include <simgear/compiler.h>
 #include <simgear/structure/subsystem_mgr.hxx>
 #include <simgear/math/point3d.hxx>
+#include <simgear/scene/model/placementtrans.hxx>
+#include <simgear/structure/ssgSharedPtr.hxx>
 
 SG_USING_STD(list);
 
 class ssgRoot;
 class ssgBranch;
-class ssgPlacementTransform;
 
 
 // Define a structure containing global scenery parameters
@@ -57,17 +58,17 @@ class FGScenery : public SGSubsystem {
     double sun_angle;
 
     // SSG scene graph
-    ssgRoot *scene_graph;
-    ssgBranch *terrain_branch;
-    ssgRoot *gnd_lights_root;
-    ssgRoot *vasi_lights_root;
-    ssgRoot *rwy_lights_root;
-    ssgRoot *taxi_lights_root;
-    ssgBranch *models_branch;
-    ssgBranch *aircraft_branch;
+    ssgSharedPtr<ssgRoot> scene_graph;
+    ssgSharedPtr<ssgBranch> terrain_branch;
+    ssgSharedPtr<ssgRoot> gnd_lights_root;
+    ssgSharedPtr<ssgRoot> vasi_lights_root;
+    ssgSharedPtr<ssgRoot> rwy_lights_root;
+    ssgSharedPtr<ssgRoot> taxi_lights_root;
+    ssgSharedPtr<ssgBranch> models_branch;
+    ssgSharedPtr<ssgBranch> aircraft_branch;
 
     // list of all placement transform, used to move the scenery center on the fly.
-    typedef list<ssgPlacementTransform*> placement_list_type;
+    typedef list<ssgSharedPtr<ssgPlacementTransform> > placement_list_type;
     placement_list_type _placement_list;
 
 public: