diff --git a/src/Network/Makefile.am b/src/Network/Makefile.am index 927a4185d..19617bf19 100644 --- a/src/Network/Makefile.am +++ b/src/Network/Makefile.am @@ -12,8 +12,6 @@ else MPLAYER_AS = endif -EXTRA_DIST = net_gui.hxx - libNetwork_a_SOURCES = \ protocol.cxx protocol.hxx \ atc610x.cxx atc610x.hxx \ @@ -26,7 +24,7 @@ libNetwork_a_SOURCES = \ native_ctrls.cxx native_ctrls.hxx \ native_fdm.cxx native_fdm.hxx \ native_gui.cxx native_gui.hxx \ - net_ctrls.hxx net_fdm.hxx net_fdm_mini.hxx \ + net_ctrls.hxx net_fdm.hxx net_fdm_mini.hxx net_gui.hxx \ nmea.cxx nmea.hxx \ opengc.cxx opengc.hxx opengc_data.hxx \ $(MPLAYER_AS) \ diff --git a/src/Objects/obj.cxx b/src/Objects/obj.cxx index 9c171d58e..c300d5f03 100644 --- a/src/Objects/obj.cxx +++ b/src/Objects/obj.cxx @@ -34,8 +34,6 @@ #include #include -#include -#include #include STL_STRING #include // STL @@ -43,7 +41,9 @@ #include // isdigit() #include +#include #include +#include #include #include #include @@ -58,7 +58,6 @@ #include #include
-#include
#include "obj.hxx" @@ -249,13 +248,13 @@ public: float * p3; sgVec3 center; double area; - SGMaterial::ObjectGroup * object_group; + SGMatObjectGroup * object_group; ssgBranch * branch; LeafUserData * leafData; unsigned int seed; void fill_in_triangle(); - void add_object_to_triangle(SGMaterial::Object * object); + void add_object_to_triangle(SGMatObject * object); void makeWorldMatrix (sgMat4 ROT, double hdg_deg ); }; @@ -276,7 +275,7 @@ void TriUserData::fill_in_triangle () int nObjects = object_group->get_object_count(); for (int i = 0; i < nObjects; i++) { - SGMaterial::Object * object = object_group->get_object(i); + SGMatObject * object = object_group->get_object(i); double num = area / object->get_coverage_m2(); // place an object each unit of area @@ -296,11 +295,11 @@ void TriUserData::fill_in_triangle () } } -void TriUserData::add_object_to_triangle (SGMaterial::Object * object) +void TriUserData::add_object_to_triangle (SGMatObject * object) { // Set up the random heading if required. double hdg_deg = 0; - if (object->get_heading_type() == SGMaterial::Object::HEADING_RANDOM) + if (object->get_heading_type() == SGMatObject::HEADING_RANDOM) hdg_deg = sg_random() * 360; sgMat4 mat; @@ -311,8 +310,7 @@ void TriUserData::add_object_to_triangle (SGMaterial::Object * object) pos->addKid( object->get_random_model( globals->get_model_loader(), globals->get_fg_root(), globals->get_props(), - globals->get_sim_time_sec() ) - ); + globals->get_sim_time_sec() ) ); branch->addKid(pos); } @@ -482,7 +480,7 @@ void LeafUserData::setup_triangle (int i ) int num_groups = mat->get_object_group_count(); for (int j = 0; j < num_groups; j++) { // Look up the random object. - SGMaterial::ObjectGroup * group = mat->get_object_group(j); + SGMatObjectGroup * group = mat->get_object_group(j); // Set up the range selector for the entire // triangle; note that we use the object diff --git a/src/Objects/obj.hxx b/src/Objects/obj.hxx index ab5540006..348a26e54 100644 --- a/src/Objects/obj.hxx +++ b/src/Objects/obj.hxx @@ -37,15 +37,12 @@ #include // plib include -#include #include -#include SG_USING_STD(string); - -// duplicated from the TerraGear tools -#define FG_MAX_NODES 4000 +class SGBucket; +class SGMaterialLib; // Load a Binary obj file