#include <simgear/math/sg_random.h>
#include <simgear/misc/sg_path.hxx>
#include <simgear/misc/sgstream.hxx>
-#include <simgear/scene/model/loader.hxx>
+#include <simgear/scene/model/modellib.hxx>
#include "mat.hxx"
#include <plib/ssg.h>
#include <simgear/props/props.hxx>
-#include <simgear/scene/model/loader.hxx>
+#include <simgear/scene/model/modellib.hxx>
#include "matmodel.hxx"
#include <simgear/math/sg_random.h>
#include <simgear/misc/sg_path.hxx>
#include <simgear/misc/sgstream.hxx>
-#include <simgear/scene/model/loader.hxx>
+#include <simgear/scene/model/modellib.hxx>
#include "matmodel.hxx"
}
int
-SGMatModel::get_model_count( SGModelLoader *loader,
+SGMatModel::get_model_count( SGModelLib *loader,
const string &fg_root,
SGPropertyNode *prop_root,
double sim_time_sec )
}
inline void
-SGMatModel::load_models ( SGModelLoader *loader,
+SGMatModel::load_models ( SGModelLib *loader,
const string &fg_root,
SGPropertyNode *prop_root,
double sim_time_sec )
ssgEntity *
SGMatModel::get_model( int index,
- SGModelLoader *loader,
+ SGModelLib *loader,
const string &fg_root,
SGPropertyNode *prop_root,
double sim_time_sec )
}
ssgEntity *
-SGMatModel::get_random_model( SGModelLoader *loader,
+SGMatModel::get_random_model( SGModelLib *loader,
const string &fg_root,
SGPropertyNode *prop_root,
double sim_time_sec )
#include <plib/ssg.h>
#include <simgear/props/props.hxx>
-#include <simgear/scene/model/loader.hxx>
+#include <simgear/scene/model/modellib.hxx>
SG_USING_STD(string);
*
* @return The number of variant models.
*/
- int get_model_count( SGModelLoader *loader,
+ int get_model_count( SGModelLib *loader,
const string &fg_root,
SGPropertyNode *prop_root,
double sim_time_sec );
* @return The model.
*/
ssgEntity *get_model( int index,
- SGModelLoader *loader,
+ SGModelLib *loader,
const string &fg_root,
SGPropertyNode *prop_root,
double sim_time_sec );
*
* @return A randomly select model from the variants.
*/
- ssgEntity *get_random_model( SGModelLoader *loader,
+ ssgEntity *get_random_model( SGModelLib *loader,
const string &fg_root,
SGPropertyNode *prop_root,
double sim_time_sec );
* This class uses lazy loading so that models won't be held
* in memory for materials that are never referenced.
*/
- void load_models( SGModelLoader *loader,
+ void load_models( SGModelLib *loader,
const string &fg_root,
SGPropertyNode *prop_root,
double sim_time_sec );