]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/wxradar.hxx
initialize variables before using them
[flightgear.git] / src / Instrumentation / wxradar.hxx
index 5fde855a6a7214fb5cef161df4084281d286abc2..575519015934a632d2d5cb28c193f26083bf8bb3 100644 (file)
 #ifndef _INST_WXRADAR_HXX
 #define _INST_WXRADAR_HXX
 
+#include <osg/ref_ptr>
+#include <osg/Texture2D>
+
 #include <simgear/props/props.hxx>
 #include <simgear/structure/subsystem_mgr.hxx>
 #include <simgear/environment/visual_enviro.hxx>
-#include <simgear/structure/ssgSharedPtr.hxx>
 
-class ssgTexture;
 class FGODGauge;
 
 class wxRadarBg : public SGSubsystem {
@@ -45,13 +46,13 @@ public:
 
 private:
 
-    string name;
-    int num;
+    string _name;
+    int _num;
 
     SGPropertyNode_ptr _serviceable_node;
     SGPropertyNode_ptr _Instrument;
-    ssgSharedPtr<ssgTexture> resultTexture;
-    ssgSharedPtr<ssgTexture> wxEcho;
+    osg::ref_ptr<osg::Texture2D> resultTexture;
+    osg::ref_ptr<osg::Texture2D> wxEcho;
     string last_switchKnob;
     bool sim_init_done;
     FGODGauge *odg;