]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/wxradar.hxx
initialize variables before using them
[flightgear.git] / src / Instrumentation / wxradar.hxx
index 3939977f08fbefb4c65cd2a8481cf9802a3a443b..575519015934a632d2d5cb28c193f26083bf8bb3 100644 (file)
 //
 // You should have received a copy of the GNU General Public License
 // along with this program; if not, write to the Free Software
-// Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 //
 //
 
 #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>
 
-class ssgTexture;
 class FGODGauge;
 
 class wxRadarBg : public SGSubsystem {
@@ -44,13 +46,13 @@ public:
 
 private:
 
-    string name;
-    int num;
+    string _name;
+    int _num;
 
     SGPropertyNode_ptr _serviceable_node;
     SGPropertyNode_ptr _Instrument;
-    ssgTexture *resultTexture;
-    ssgTexture *wxEcho;
+    osg::ref_ptr<osg::Texture2D> resultTexture;
+    osg::ref_ptr<osg::Texture2D> wxEcho;
     string last_switchKnob;
     bool sim_init_done;
     FGODGauge *odg;