]> git.mxchange.org Git - simgear.git/commitdiff
forward declare Point3D in sg_types.hxx
authorTim Moore <timoore@redhat.com>
Sun, 18 Oct 2009 10:08:42 +0000 (12:08 +0200)
committerTim Moore <timoore@redhat.com>
Sun, 18 Oct 2009 10:11:13 +0000 (12:11 +0200)
This avoids sucking in SGMath.hxx -- and therefore a bunch of OSG headers --
into many compilation units.

simgear/io/sg_binobj.hxx
simgear/math/sg_types.hxx
simgear/misc/texcoord.cxx
simgear/scene/sky/oursun.cxx
simgear/scene/tgdb/SGLightBin.hxx

index 7fd5eb477b14f11d72207584527c081f8b12a66f..be77d5864252149e7bfd52a11e21831c89e4020c 100644 (file)
@@ -33,6 +33,7 @@
 #include <simgear/compiler.h>
 #include <simgear/constants.h>
 #include <simgear/math/sg_types.hxx>
+#include <simgear/math/point3d.hxx>
 #include <simgear/bucket/newbucket.hxx>
 
 #include <stdio.h>
index 4698acecb5886d8018ced33e24a9136e87a49617..f413c26b58359eb66f13f00c6773132562e2bffd 100644 (file)
@@ -38,7 +38,7 @@
 #include <string>
 #include <vector>
 
-#include <simgear/math/point3d.hxx>
+class Point3D;
 
 using std::vector;
 using std::string;
index 2705980d1c96db73cc04ed30c65878f49aface37..30af6eff8e7b34b35cd53101f48ca554ad818b09 100644 (file)
@@ -149,6 +149,7 @@ enter this in the official comments in case I forget again. :-)
 
 #include "texcoord.hxx"
 
+#include <simgear/math/point3d.hxx>
 // using std::cout;
 // using std::endl;
 
index e4249989ee6305c38b96f137e3f61ed15820abb7..db7e73198cb69c8cf47c7ed0d738fed41cdfe8f4 100644 (file)
@@ -41,6 +41,7 @@
 #include <osg/Texture2D>
 #include <osgDB/ReadFile>
 
+#include <simgear/math/SGMath.hxx>
 #include <simgear/misc/PathOptions.hxx>
 #include <simgear/screen/colors.hxx>
 #include <simgear/scene/model/model.hxx>
index 09df31e3409356f36979c34d1aa108c917becdb3..c6cb6f25c347fbd4cfeb41fda47d380198734abe 100644 (file)
@@ -22,6 +22,8 @@
 #ifndef SG_LIGHT_BIN_HXX
 #define SG_LIGHT_BIN_HXX
 
+#include <simgear/math/SGMath.hxx>
+
 class SGLightBin {
 public:
   struct Light {