//
//
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <plib/sg.h>
#include <plib/ssg.h>
#include <Main/fg_props.hxx>
wxRadarBg::~wxRadarBg ()
{
- ssgDeRefDelete(resultTexture);
- ssgDeRefDelete(wxEcho);
}
void
_Instrument = fgGetNode(branch.c_str(), num, true );
_serviceable_node = _Instrument->getChild("serviceable", 0, true);
resultTexture = FGTextureManager::createTexture( odgauge_name );
- resultTexture->ref();
SGPath tpath(globals->get_fg_root());
tpath.append("Aircraft/Instruments/Textures/wxecho.rgb");
// no mipmap or else alpha will mix with pixels on the border of shapes, ruining the effect
wxEcho = new ssgTexture( tpath.c_str(), false, false, false);
- wxEcho->ref();
_Instrument->setFloatValue("trk", 0.0);
_Instrument->setFloatValue("tilt", 0.0);