From 1f3947ea4c747c89c03fc7d725087982fe44431f Mon Sep 17 00:00:00 2001 From: ehofman Date: Fri, 16 May 2003 08:51:24 +0000 Subject: [PATCH] A patch from Frederic Bouvier to correct a naming problem caused bu Curts work. This gets FlightGear/SimGear compiling again --- simgear/scene/material/mat.cxx | 2 +- simgear/scene/material/mat.hxx | 2 +- simgear/scene/material/matmodel.cxx | 10 +++++----- simgear/scene/material/matmodel.hxx | 10 +++++----- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/simgear/scene/material/mat.cxx b/simgear/scene/material/mat.cxx index 0e505de5..2c45c322 100644 --- a/simgear/scene/material/mat.cxx +++ b/simgear/scene/material/mat.cxx @@ -40,7 +40,7 @@ SG_USING_STD(map); #include #include #include -#include +#include #include "mat.hxx" diff --git a/simgear/scene/material/mat.hxx b/simgear/scene/material/mat.hxx index 98697f0e..fea29c55 100644 --- a/simgear/scene/material/mat.hxx +++ b/simgear/scene/material/mat.hxx @@ -38,7 +38,7 @@ #include #include -#include +#include #include "matmodel.hxx" diff --git a/simgear/scene/material/matmodel.cxx b/simgear/scene/material/matmodel.cxx index 24f8c863..6bc8f6b4 100644 --- a/simgear/scene/material/matmodel.cxx +++ b/simgear/scene/material/matmodel.cxx @@ -40,7 +40,7 @@ SG_USING_STD(map); #include #include #include -#include +#include #include "matmodel.hxx" @@ -117,7 +117,7 @@ SGMatModel::~SGMatModel () } int -SGMatModel::get_model_count( SGModelLoader *loader, +SGMatModel::get_model_count( SGModelLib *loader, const string &fg_root, SGPropertyNode *prop_root, double sim_time_sec ) @@ -127,7 +127,7 @@ SGMatModel::get_model_count( SGModelLoader *loader, } inline void -SGMatModel::load_models ( SGModelLoader *loader, +SGMatModel::load_models ( SGModelLib *loader, const string &fg_root, SGPropertyNode *prop_root, double sim_time_sec ) @@ -164,7 +164,7 @@ SGMatModel::load_models ( SGModelLoader *loader, ssgEntity * SGMatModel::get_model( int index, - SGModelLoader *loader, + SGModelLib *loader, const string &fg_root, SGPropertyNode *prop_root, double sim_time_sec ) @@ -174,7 +174,7 @@ SGMatModel::get_model( int index, } ssgEntity * -SGMatModel::get_random_model( SGModelLoader *loader, +SGMatModel::get_random_model( SGModelLib *loader, const string &fg_root, SGPropertyNode *prop_root, double sim_time_sec ) diff --git a/simgear/scene/material/matmodel.hxx b/simgear/scene/material/matmodel.hxx index 33d769e8..a1922596 100644 --- a/simgear/scene/material/matmodel.hxx +++ b/simgear/scene/material/matmodel.hxx @@ -36,7 +36,7 @@ #include #include -#include +#include SG_USING_STD(string); @@ -71,7 +71,7 @@ public: * * @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 ); @@ -84,7 +84,7 @@ public: * @return The model. */ ssgEntity *get_model( int index, - SGModelLoader *loader, + SGModelLib *loader, const string &fg_root, SGPropertyNode *prop_root, double sim_time_sec ); @@ -95,7 +95,7 @@ public: * * @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 ); @@ -132,7 +132,7 @@ private: * 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 ); -- 2.39.5