forward declare Point3D in sg_types.hxx

This avoids sucking in SGMath.hxx -- and therefore a bunch of OSG headers --
into many compilation units.
This commit is contained in:
Tim Moore 2009-10-18 12:08:42 +02:00
parent 40e13b91fe
commit b1c49045a8
5 changed files with 6 additions and 1 deletions

View 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>

View File

@ -38,7 +38,7 @@
#include <string>
#include <vector>
#include <simgear/math/point3d.hxx>
class Point3D;
using std::vector;
using std::string;

View 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;

View 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>

View 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 {