Fixes for headless mode.
This commit is contained in:
@@ -15,6 +15,10 @@
|
|||||||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
//
|
//
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
# include <simgear_config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "SGMath.hxx"
|
#include "SGMath.hxx"
|
||||||
|
|
||||||
#ifndef NO_OPENSCENEGRAPH_INTERFACE
|
#ifndef NO_OPENSCENEGRAPH_INTERFACE
|
||||||
|
|||||||
@@ -15,8 +15,14 @@
|
|||||||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
//
|
//
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
# include <simgear_config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "project.hxx"
|
#include "project.hxx"
|
||||||
|
|
||||||
|
#ifndef NO_OPENSCENEGRAPH_INTERFACE
|
||||||
|
|
||||||
#include <osg/Math>
|
#include <osg/Math>
|
||||||
#include <osg/Matrixd>
|
#include <osg/Matrixd>
|
||||||
|
|
||||||
@@ -41,3 +47,6 @@ GLint project(GLdouble objX, GLdouble objY, GLdouble objZ,
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // of NO_OPENSCENEGRAPH_INTERFACE
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,9 @@
|
|||||||
//
|
//
|
||||||
#ifndef SIMGEAR_PROJECT_HXX
|
#ifndef SIMGEAR_PROJECT_HXX
|
||||||
#define SIMGEAR_PROJECT_HXX 1
|
#define SIMGEAR_PROJECT_HXX 1
|
||||||
|
|
||||||
|
#ifndef NO_OPENSCENEGRAPH_INTERFACE
|
||||||
|
|
||||||
#include <osg/GL>
|
#include <osg/GL>
|
||||||
|
|
||||||
namespace simgear
|
namespace simgear
|
||||||
@@ -26,4 +29,8 @@ extern GLint project(GLdouble objX, GLdouble objY, GLdouble objZ,
|
|||||||
const GLint *view,
|
const GLint *view,
|
||||||
GLdouble* winX, GLdouble* winY, GLdouble* winZ);
|
GLdouble* winX, GLdouble* winY, GLdouble* winZ);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // of NO_OPENSCENEGRAPH_INTERFACE
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,12 @@
|
|||||||
//
|
//
|
||||||
// $Id$
|
// $Id$
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
# include <simgear_config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef NO_OPENSCENEGRAPH_INTERFACE
|
||||||
|
|
||||||
#include <osgDB/Registry>
|
#include <osgDB/Registry>
|
||||||
|
|
||||||
#include "PathOptions.hxx"
|
#include "PathOptions.hxx"
|
||||||
@@ -31,3 +37,5 @@ osgDB::ReaderWriter::Options* simgear::makeOptionsFromPath(const SGPath& path)
|
|||||||
options->setDatabasePath(path.str());
|
options->setDatabasePath(path.str());
|
||||||
return options;
|
return options;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // of NO_OPENSCENEGRAPH_INTERFACE
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
#ifndef PATHOPTIONSHXX
|
#ifndef PATHOPTIONSHXX
|
||||||
#define PATHOPTIONSHXX 1
|
#define PATHOPTIONSHXX 1
|
||||||
|
|
||||||
|
#ifndef NO_OPENSCENEGRAPH_INTERFACE
|
||||||
#include <osgDB/ReaderWriter>
|
#include <osgDB/ReaderWriter>
|
||||||
#include <simgear/misc/sg_path.hxx>
|
#include <simgear/misc/sg_path.hxx>
|
||||||
|
|
||||||
@@ -28,3 +29,5 @@ namespace simgear
|
|||||||
osgDB::ReaderWriter::Options* makeOptionsFromPath(const SGPath&);
|
osgDB::ReaderWriter::Options* makeOptionsFromPath(const SGPath&);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|||||||
@@ -16,6 +16,10 @@
|
|||||||
// along with this program; if not, write to the Free Software
|
// along with this program; if not, write to the Free Software
|
||||||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
# include <simgear_config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "interpolator.hxx"
|
#include "interpolator.hxx"
|
||||||
|
|
||||||
#include <simgear/math/SGMath.hxx>
|
#include <simgear/math/SGMath.hxx>
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
# include <simgear_config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <simgear/compiler.h>
|
#include <simgear/compiler.h>
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,10 @@
|
|||||||
// Test harness.
|
// Test harness.
|
||||||
////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
# include <simgear_config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <simgear/compiler.h>
|
#include <simgear/compiler.h>
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|||||||
@@ -3,8 +3,10 @@
|
|||||||
|
|
||||||
#include <boost/pool/detail/singleton.hpp>
|
#include <boost/pool/detail/singleton.hpp>
|
||||||
|
|
||||||
|
#ifndef NO_OPENSCENEGRAPH_INTERFACE
|
||||||
#include <osg/Referenced>
|
#include <osg/Referenced>
|
||||||
#include <osg/ref_ptr>
|
#include <osg/ref_ptr>
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace simgear
|
namespace simgear
|
||||||
{
|
{
|
||||||
@@ -27,6 +29,7 @@ public:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifndef NO_OPENSCENEGRAPH_INTERFACE
|
||||||
template <typename RefClass>
|
template <typename RefClass>
|
||||||
class SingletonRefPtr
|
class SingletonRefPtr
|
||||||
{
|
{
|
||||||
@@ -54,5 +57,7 @@ public:
|
|||||||
return SingletonRefPtr<RefClass>::instance();
|
return SingletonRefPtr<RefClass>::instance();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
#endif // of NO_OPENSCENEGRAPH_INTERFACE
|
||||||
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
# include <simgear_config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "event_mgr.hxx"
|
#include "event_mgr.hxx"
|
||||||
|
|
||||||
#include <simgear/math/SGMath.hxx>
|
#include <simgear/math/SGMath.hxx>
|
||||||
|
|||||||
@@ -18,6 +18,10 @@
|
|||||||
//
|
//
|
||||||
// $Id$
|
// $Id$
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
# include <simgear_config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <simgear/debug/logstream.hxx>
|
#include <simgear/debug/logstream.hxx>
|
||||||
#include <simgear/timing/timestamp.hxx>
|
#include <simgear/timing/timestamp.hxx>
|
||||||
|
|
||||||
|
|||||||
@@ -26,6 +26,10 @@
|
|||||||
*
|
*
|
||||||
************************************************************************/
|
************************************************************************/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
# include <simgear_config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user