From Norman Vine, fixes for Mingw

This commit is contained in:
Robert Osfield 2004-08-02 09:11:31 +00:00
parent e122b34858
commit 6524fe1293
25 changed files with 113 additions and 14 deletions

View File

@ -139,6 +139,10 @@ SOURCE=..\..\Src\osgDB\Output.cpp
# End Source File
# Begin Source File
SOURCE=..\..\Src\osgDB\ReaderWriter.cpp
# End Source File
# Begin Source File
SOURCE=..\..\Src\osgDB\ReadFile.cpp
# End Source File
# Begin Source File

View File

@ -107,6 +107,10 @@ SOURCE=..\..\src\osgGA\FlightManipulator.cpp
# End Source File
# Begin Source File
SOURCE=..\..\src\osgGA\GUIEventAdapter.cpp
# End Source File
# Begin Source File
SOURCE=..\..\src\osgGA\GUIEventHandler.cpp
# End Source File
# Begin Source File

View File

@ -54,7 +54,7 @@ class SG_EXPORT ConvexPlanarOccluder : public Object
protected:
~ConvexPlanarOccluder() {}
~ConvexPlanarOccluder(); // {}
ConvexPlanarPolygon _occluder;
HoleList _holeList;

View File

@ -19,7 +19,9 @@
#if defined(WIN32)
#define WIN32_LEAN_AND_MEAN
#ifndef NOMINMAX
#define NOMINMAX
#endif // NOMINMAX
#include <windows.h>
#elif defined(__APPLE__)
#include <mach-o/dyld.h>

View File

@ -82,7 +82,7 @@ class SG_EXPORT Shape : public Object
protected:
virtual ~Shape() {}
virtual ~Shape();
};
// forward declartions of Shape types.
@ -571,7 +571,7 @@ class SG_EXPORT HeightField : public Shape
protected:
~HeightField() {}
virtual ~HeightField();
unsigned int _columns,_rows;

View File

@ -31,7 +31,7 @@ namespace osgDB {
class OSGDB_EXPORT ReaderWriter : public osg::Referenced
{
public:
virtual ~ReaderWriter() {}
virtual ~ReaderWriter(); // {}
virtual const char* className() = 0;
virtual bool acceptsExtension(const std::string& /*extension*/) { return false; }

View File

@ -292,7 +292,7 @@ protected:
GUIEventAdapter(MouseYOrientation myo=Y_INCREASING_DOWNWARDS):_mouseYOrientation(myo) {}
/** Force users to create on heap, so that multiple referencing is safe.*/
virtual ~GUIEventAdapter() {}
virtual ~GUIEventAdapter(); // {}
MouseYOrientation _mouseYOrientation;

View File

@ -135,7 +135,7 @@ class OSGPRODUCER_EXPORT OsgCameraGroup : public Producer::CameraGroup
virtual void operator()( OsgCameraGroup& cg, OsgSceneHandler& sh, const Producer::RenderSurface & rs) = 0;
protected:
virtual ~RealizeCallback() {}
virtual ~RealizeCallback(); // {}
};
/** Set the realize callback to use when once the render surfaces are realized.*/

View File

@ -224,7 +224,8 @@ public:
/** force update the drawables used to render the scalar bar.*/
void update() { createDrawables(); }
private:
protected:
virtual ~ScalarBar();
int _numColors;
int _numLabels;

View File

@ -13,3 +13,7 @@
#include <osg/ConvexPlanarOccluder>
using namespace osg;
ConvexPlanarOccluder::~ConvexPlanarOccluder()
{
};

View File

@ -15,6 +15,15 @@
using namespace osg;
Shape::~Shape()
{
}
HeightField::~HeightField()
{
}
void HeightField::allocate(unsigned int numColumns,unsigned int numRows)
{
if (_columns!=numColumns || _rows!=numRows)

View File

@ -7,6 +7,7 @@ CXXFILES =\
FileNameUtils.cpp\
FileUtils.cpp\
ReadFile.cpp\
ReaderWriter.cpp\
Registry.cpp\
Version.cpp\
WriteFile.cpp\

View File

@ -0,0 +1,20 @@
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2003 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* included with this distribution, and on the openscenegraph.org website.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* OpenSceneGraph Public License for more details.
*/
#include <osgDB/ReaderWriter>
using namespace osgDB;
ReaderWriter::~ReaderWriter()
{
}

View File

@ -1,3 +1,16 @@
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2003 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* included with this distribution, and on the openscenegraph.org website.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* OpenSceneGraph Public License for more details.
*/
#if defined(_MSC_VER)
#pragma warning( disable : 4786 )
#endif

View File

@ -7,6 +7,7 @@ CXXFILES = \
MatrixManipulator.cpp\
DriveManipulator.cpp\
FlightManipulator.cpp\
GUIEventAdapter.cpp\
GUIEventHandler.cpp\
GUIEventHandlerVisitor.cpp\
KeySwitchMatrixManipulator.cpp\

View File

@ -0,0 +1,20 @@
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2003 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* included with this distribution, and on the openscenegraph.org website.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* OpenSceneGraph Public License for more details.
*/
#include <osgGA/GUIEventHandler>
using namespace osgGA;
GUIEventAdapter::~GUIEventAdapter()
{
}

View File

@ -1,3 +1,16 @@
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2003 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* included with this distribution, and on the openscenegraph.org website.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* OpenSceneGraph Public License for more details.
*/
#include <osgGA/GUIEventHandler>
using namespace osgGA;

View File

@ -1,7 +1,7 @@
#ifndef __ATTR_DATA_H
#define __ATTR_DATA_H
#if defined(WIN32) && !defined(__CYGWIN__)
#if defined(_MSC_VER)
#pragma warning( disable : 4786 )
#endif

View File

@ -4,7 +4,7 @@
// that is used to detail texture
// Julian Ortiz, June 18th 2003.
#if defined(WIN32) && !defined(__CYGWIN__)
#if defined(_MSC_VER)
#pragma warning( disable : 4786 )
#endif

View File

@ -1,6 +1,6 @@
// MeshPrimitiveRecords.cpp
#ifdef _WIN32
#if defined(_MSC_VER)
#pragma warning(disable:4786) // Truncated debug names.
#endif

View File

@ -1,6 +1,6 @@
// MeshRecord.cpp
#ifdef _WIN32
#if defined(_MSC_VER)
#pragma warning(disable:4786) // Truncated debug names.
#endif

View File

@ -4,7 +4,7 @@
#ifndef __FLT_REGISTRY_H
#define __FLT_REGISTRY_H
#if defined(WIN32) && !defined(__CYGWIN__)
#if defined(_MSC_VER)
#pragma warning( disable : 4786 )
#endif

View File

@ -11,7 +11,7 @@
#include <iostream>
#include <assert.h>
#if defined(__CYGWIN__) || defined(__MINGW32__)
#if defined(_MSC_VER)
#include <sys/types.h>
#endif

View File

@ -26,6 +26,9 @@
using namespace Producer;
using namespace osgProducer;
OsgCameraGroup::RealizeCallback::~RealizeCallback()
{
}
class RenderSurfaceRealizeCallback : public Producer::RenderSurface::Callback
{

View File

@ -5,6 +5,10 @@
using namespace osgSim;
ScalarBar::~ScalarBar()
{
}
std::string ScalarBar::ScalarPrinter::printScalar(float scalar)
{
std::stringstream ostr;