From 2b08f729f3cc77f27763d3d4535d903f9dec0152 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 25 May 2005 15:35:51 +0000 Subject: [PATCH] Updated change log. From Fredric Marmond, changed unsigned int to unsigned long to avoid compile errors under 64 bit compile. --- ChangeLog | 58 ++++++++++++++++++++++++++++++++++++++++++++ include/osg/Geometry | 4 +-- src/osg/Geometry.cpp | 10 ++++---- 3 files changed, 65 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7fc4a5029..f92b3a081 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,61 @@ +2005-05-25 12:45 robert + + * NEWS.txt, doc/Doxyfiles/core_Doxyfile, + include/osgIntrospection/Export, + src/osgWrappers/osgTerrain/DataSet.cpp: Updated doxgen docs. + +2005-05-25 10:50 robert + + * include/osg/Image, src/osg/Texture.cpp, + src/osg/TextureRectangle.cpp: Changd unsigned int's to unsigned + char* to fix gcc3.4 64 bit issues. + +2005-05-25 10:48 robert + + * NEWS.txt: Updated NEWS + +2005-05-24 21:45 robert + + * NEWS.txt: Updated NEWS + +2005-05-24 19:57 robert + + * include/: osg/Export, osgDB/Export, osgGA/Export, + osgParticle/Export, osgProducer/Export, osgSim/Export, + osgTerrain/Export, osgText/Export, osgUtil/Export: Added pragma + to remove warnings under VS.8.0 + +2005-05-24 16:34 robert + + * include/osgTerrain/DataSet, include/osgUtil/RenderBin, + include/osgUtil/RenderStage, src/osgUtil/RenderBin.cpp, + src/osgUtil/RenderStage.cpp, + src/osgWrappers/osgUtil/RenderBin.cpp, + src/osgWrappers/osgUtil/RenderStage.cpp: Updates to clean up + wrapper generation, and to update wrappers + +2005-05-24 16:23 robert + + * src/osgPlugins/ive/: ConvexPlanarOccluder.h, + ConvexPlanarPolygon.h, CoordinateSystemNode.h, EllipsoidModel.h, + Impostor.h, MultiSwitch.h, OccluderNode.h, Switch.h: Did a + dos2unix on all files + +2005-05-24 11:46 robert + + * src/osgDB/DatabasePager.cpp: Added check for an empty compile + lists. + +2005-05-24 11:37 robert + + * src/osgPlugins/flt/: ReaderWriterFLT.cpp, ReaderWriterFLT.h: + Added re-entrent mutex to serialize access to OpenFlight plugin + to prevent any multi-threaded issues. + +2005-05-23 12:27 robert + + * ChangeLog: Updated changelog + 2005-05-23 12:18 robert * runexamples.bat: Added new examples to runexamples diff --git a/include/osg/Geometry b/include/osg/Geometry index c7d452c57..67ad279cb 100644 --- a/include/osg/Geometry +++ b/include/osg/Geometry @@ -92,7 +92,7 @@ class OSG_EXPORT Geometry : public Drawable ref_ptr indices; AttributeBinding binding; GLboolean normalize; - mutable unsigned int offset; + mutable unsigned long offset; }; struct OSG_EXPORT Vec3ArrayData @@ -134,7 +134,7 @@ class OSG_EXPORT Geometry : public Drawable ref_ptr indices; AttributeBinding binding; GLboolean normalize; - mutable unsigned int offset; + mutable unsigned long offset; }; /** Static ArrayData which is returned from getTexCoordData(i) const and getVertexAttribData(i) const diff --git a/src/osg/Geometry.cpp b/src/osg/Geometry.cpp index 03a2d5cc7..837b501d0 100644 --- a/src/osg/Geometry.cpp +++ b/src/osg/Geometry.cpp @@ -438,10 +438,10 @@ bool Geometry::empty() const void Geometry::setTexCoordData(unsigned int unit,const ArrayData& arrayData) { - if (_texCoordList.size()<=unit) - _texCoordList.resize(unit+1); - - _texCoordList[unit] = arrayData; + if (_texCoordList.size()<=unit) + _texCoordList.resize(unit+1); + + _texCoordList[unit] = arrayData; } Geometry::ArrayData& Geometry::getTexCoordData(unsigned int unit) @@ -896,7 +896,7 @@ void Geometry::drawImplementation(State& state) const //std::cout << " gen VertexBuffer "<getTotalDataSize();