// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
//
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#ifdef FG_MPLAYER_AS
/******************************************************************
* $Id$
#include "mpplayer.hxx"
#include <stdlib.h>
-#ifndef _MSC_VER
+#if !(defined(_MSC_VER) || defined(__MINGW32__))
# include <netdb.h>
# include <sys/socket.h>
# include <netinet/in.h>
#include <plib/netSocket.h>
#include <plib/sg.h>
+#include <simgear/scene/model/modellib.hxx>
+
#include <Main/globals.hxx>
-#include <Model/loader.hxx>
#include <Scenery/scenery.hxx>
// Flush the model loader so that it erases the model from its list of
// models.
- globals->get_model_loader()->flush();
+ globals->get_model_lib()->flush1();
// Assume that plib/ssg deletes the model and transform as their
// refcounts should be zero.
m_ModelTrans = new ssgTransform;
// Load the model
- m_Model = globals->get_model_loader()->load_model(m_sModelName);
+ m_Model = globals->get_model_lib()->load_model( globals->get_fg_root(),
+ m_sModelName,
+ globals->get_props(),
+ globals->get_sim_time_sec() );
m_Model->clrTraversalMaskBits( SSGTRAV_HOT );
// Add model to transform
}
+#endif // FG_MPLAYER_AS
+