From Norman Vine (with small tweaks by Robert Osfield), build fixes for Cygwin

This commit is contained in:
Robert Osfield
2004-08-04 08:27:43 +00:00
parent 041b664660
commit 7eb3f2646e
33 changed files with 137 additions and 111 deletions

View File

@@ -14,15 +14,15 @@
#ifndef OSG_ANIMATIONPATH
#define OSG_ANIMATIONPATH 1
#include <map>
#include <istream>
#include <float.h>
#include <osg/Matrixf>
#include <osg/Matrixd>
#include <osg/Quat>
#include <osg/NodeCallback>
#include <map>
#include <istream>
#include <float.h>
namespace osg {
/** AnimationPath for specify the time varying transformation pathway to use when update camera and model objects.

View File

@@ -14,14 +14,15 @@
#ifndef OSG_ARRAY
#define OSG_ARRAY 1
#include <osg/Object>
#include <osg/GL>
#include <vector>
#include <osg/Vec2>
#include <osg/Vec3>
#include <osg/Vec4>
#include <osg/UByte4>
#include <vector>
#include <osg/Object>
#include <osg/GL>
namespace osg {

View File

@@ -14,9 +14,9 @@
#ifndef OSG_AUTOTRANSFORM
#define OSG_AUTOTRANSFORM 1
#include <osg/AnimationPath>
#include <osg/Group>
#include <osg/Transform>
#include <osg/AnimationPath>
#include <osg/Quat>
namespace osg {

View File

@@ -147,7 +147,7 @@ inline void EllipsoidModel::convertLatLongHeightToXYZ(double latitude, double lo
double N = _radiusEquator / sqrt( 1.0 - _eccentricitySquared*sin_latitude*sin_latitude);
X = (N+height)*cos_latitude*cos(longitude);
Y = (N+height)*cos_latitude*sin(longitude);
Z = (N*(1-_eccentricitySquared)+height)*sin(latitude);
Z = (N*(1-_eccentricitySquared)+height)*sin_latitude;
}

View File

@@ -16,8 +16,6 @@
#include <osg/Vec2f>
#include <ostream>
namespace osg {
/** General purpose double pair, uses include representation of

View File

@@ -14,10 +14,10 @@
#ifndef OSG_VEC2F
#define OSG_VEC2F 1
#include <osg/Math>
#include <ostream>
#include <osg/Math>
namespace osg {
/** General purpose float pair, uses include representation of

View File

@@ -16,8 +16,6 @@
#include <osg/Vec3f>
#include <ostream>
namespace osg {
/** General purpose double triple for use as vertices, vectors and normals.

View File

@@ -14,10 +14,10 @@
#ifndef OSG_VEC3F
#define OSG_VEC3F 1
#include <osg/Math>
#include <ostream>
#include <osg/Math>
namespace osg {
/** General purpose float triple for use as vertices, vectors and normals.

View File

@@ -16,8 +16,6 @@
#include <osg/Vec3f>
#include <ostream>
namespace osg {
/** General purpose float quad, uses include representation

View File

@@ -14,6 +14,8 @@
#ifndef OSGDB_READFILE
#define OSGDB_READFILE 1
#include <string>
#include <osg/Node>
#include <osg/Image>
#include <osg/ArgumentParser>
@@ -21,8 +23,6 @@
#include <osgDB/Export>
#include <osgDB/Registry>
#include <string>
namespace osgDB {

View File

@@ -14,6 +14,8 @@
#ifndef OSGTEXT_FONT
#define OSGTEXT_FONT 1
#include <string>
#include <osg/Vec2>
#include <osg/Image>
#include <osg/Texture2D>
@@ -23,8 +25,6 @@
#include <osgText/Export>
#include <string>
namespace osgText {
class Font;

View File

@@ -14,13 +14,13 @@
#ifndef OSGTEXT_STRING
#define OSGTEXT_STRING 1
#include <osg/Referenced>
#include <osgText/Export>
#include <vector>
#include <set>
#include <string>
#include <osg/Referenced>
#include <osgText/Export>
namespace osgText {
class Text;

View File

@@ -14,6 +14,9 @@
#ifndef OSGUTIL_CULLVISITOR
#define OSGUTIL_CULLVISITOR 1
#include <map>
#include <vector>
#include <osg/NodeVisitor>
#include <osg/BoundingSphere>
#include <osg/BoundingBox>
@@ -24,16 +27,12 @@
#include <osg/Impostor>
#include <osg/ClearNode>
#include <osg/Notify>
#include <osg/Notify>
#include <osg/CullStack>
#include <osgUtil/RenderGraph>
#include <osgUtil/RenderStage>
#include <map>
#include <vector>
#include <osg/Vec3>
namespace osgUtil {

View File

@@ -30,11 +30,9 @@ class OSGUTIL_EXPORT SmoothingVisitor : public osg::NodeVisitor
public:
/// default to traversing all children.
SmoothingVisitor()
{
setTraversalMode(osg::NodeVisitor::TRAVERSE_ALL_CHILDREN);
}
SmoothingVisitor();
virtual ~SmoothingVisitor();
/// smooth geoset by creating per vertex normals.
static void smooth(osg::Geometry& geoset);