Changeset 7375
- Timestamp:
- 09/07/07 17:03:56
- Files:
-
- OpenSceneGraph/trunk/examples/osgdepthpeeling/Utility.h (modified) (1 diff)
- OpenSceneGraph/trunk/examples/osgtext/osgtext.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/genwrapper.conf (modified) (2 diffs)
- OpenSceneGraph/trunk/include/osgManipulator/Dragger (modified) (1 diff)
- OpenSceneGraph/trunk/include/osgSim/OverlayNode (modified) (1 diff)
- OpenSceneGraph/trunk/include/osgUtil/StateGraph (modified) (2 diffs)
- OpenSceneGraph/trunk/src/osg/BufferObject.cpp (modified) (2 diffs)
- OpenSceneGraph/trunk/src/osg/Camera.cpp (modified) (2 diffs)
- OpenSceneGraph/trunk/src/osg/Geometry.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/src/osgDB/Registry.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/src/osgGA/EventQueue.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/src/osgPlugins/Inventor/ConvertToInventor.h (modified) (1 diff)
- OpenSceneGraph/trunk/src/osgPlugins/Inventor/GroupSoLOD.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/src/osgPlugins/dds/ReaderWriterDDS.cpp (modified) (2 diffs)
- OpenSceneGraph/trunk/src/osgPlugins/gif/ReaderWriterGIF.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/src/osgPlugins/jpeg/ReaderWriterJPEG.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/src/osgPlugins/logo/ReaderWriterLOGO.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/src/osgPlugins/lwo/old_Lwo2.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/src/osgPlugins/net/sockinet.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/src/osgPlugins/txp/ReaderWriterTXP.cpp (modified) (3 diffs)
- OpenSceneGraph/trunk/src/osgSim/OverlayNode.cpp (modified) (4 diffs)
- OpenSceneGraph/trunk/src/osgTerrain/GeometryTechnique.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/src/osgUtil/CullVisitor.cpp (modified) (3 diffs)
- OpenSceneGraph/trunk/src/osgViewer/ViewerEventHandlers.cpp (modified) (3 diffs)
- OpenSceneGraph/trunk/src/osgWrappers/osg/Array.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/src/osgWrappers/osg/StateSet.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
OpenSceneGraph/trunk/examples/osgdepthpeeling/Utility.h
r7346 r7375 54 54 */ 55 55 osg::Geode* getCanvasQuad(unsigned width, unsigned height, double depth=-1); 56 } ;56 } 57 57 #endif OpenSceneGraph/trunk/examples/osgtext/osgtext.cpp
r7338 r7375 484 484 UpdateTextOperation(osg::Group* group): 485 485 Operation("UpdateTextOperation", true), 486 _group(group),487 486 _maxNumChildren(200), 488 _maxNumTextPerGeode(10) 487 _maxNumTextPerGeode(10), 488 _group(group) 489 489 { 490 490 } OpenSceneGraph/trunk/genwrapper.conf
r7149 r7375 180 180 configure file "osg/Array" 181 181 emit after " 182 STD_VECTOR_REFLECTOR(std::vector<osg::Vec2>) ;183 STD_VECTOR_REFLECTOR(std::vector<osg::Vec3>) ;184 STD_VECTOR_REFLECTOR(std::vector<osg::Vec4>) ;185 STD_VECTOR_REFLECTOR(std::vector<osg::Vec2b>) ;186 STD_VECTOR_REFLECTOR(std::vector<osg::Vec3b>) ;187 STD_VECTOR_REFLECTOR(std::vector<osg::Vec4b>) ;188 STD_VECTOR_REFLECTOR(std::vector<osg::Vec2s>) ;189 STD_VECTOR_REFLECTOR(std::vector<osg::Vec3s>) ;190 STD_VECTOR_REFLECTOR(std::vector<osg::Vec4s>) ;191 STD_VECTOR_REFLECTOR(std::vector<osg::Vec4ub>) ;192 STD_VECTOR_REFLECTOR(std::vector<GLubyte>) ;193 STD_VECTOR_REFLECTOR(std::vector<GLbyte>) ;194 STD_VECTOR_REFLECTOR(std::vector<GLushort>) ;195 STD_VECTOR_REFLECTOR(std::vector<GLshort>) ;196 STD_VECTOR_REFLECTOR(std::vector<GLuint>) ;197 STD_VECTOR_REFLECTOR(std::vector<GLint>) ;182 STD_VECTOR_REFLECTOR(std::vector<osg::Vec2>) 183 STD_VECTOR_REFLECTOR(std::vector<osg::Vec3>) 184 STD_VECTOR_REFLECTOR(std::vector<osg::Vec4>) 185 STD_VECTOR_REFLECTOR(std::vector<osg::Vec2b>) 186 STD_VECTOR_REFLECTOR(std::vector<osg::Vec3b>) 187 STD_VECTOR_REFLECTOR(std::vector<osg::Vec4b>) 188 STD_VECTOR_REFLECTOR(std::vector<osg::Vec2s>) 189 STD_VECTOR_REFLECTOR(std::vector<osg::Vec3s>) 190 STD_VECTOR_REFLECTOR(std::vector<osg::Vec4s>) 191 STD_VECTOR_REFLECTOR(std::vector<osg::Vec4ub>) 192 STD_VECTOR_REFLECTOR(std::vector<GLubyte>) 193 STD_VECTOR_REFLECTOR(std::vector<GLbyte>) 194 STD_VECTOR_REFLECTOR(std::vector<GLushort>) 195 STD_VECTOR_REFLECTOR(std::vector<GLshort>) 196 STD_VECTOR_REFLECTOR(std::vector<GLuint>) 197 STD_VECTOR_REFLECTOR(std::vector<GLint>) 198 198 " 199 199 end … … 204 204 205 205 configure reflector "std::map< osg::StateAttribute::GLMode, osg::StateAttribute::GLModeValue >" 206 replace with "STD_MAP_REFLECTOR_WITH_TYPES(std::map< osg::StateAttribute::GLMode COMMA osg::StateAttribute::GLModeValue >, osg::StateAttribute::GLMode, osg::StateAttribute::Values) ;"206 replace with "STD_MAP_REFLECTOR_WITH_TYPES(std::map< osg::StateAttribute::GLMode COMMA osg::StateAttribute::GLModeValue >, osg::StateAttribute::GLMode, osg::StateAttribute::Values)" 207 207 end 208 208 OpenSceneGraph/trunk/include/osgManipulator/Dragger
r6845 r7375 37 37 38 38 PointerInfo(const PointerInfo& rhs): 39 _hitList(rhs._hitList), 39 40 _nearPoint(rhs._nearPoint), 40 41 _farPoint(rhs._farPoint), 41 _eyeDir(rhs._eyeDir), 42 _hitList(rhs._hitList) 42 _eyeDir(rhs._eyeDir) 43 43 { 44 44 _hitIter = _hitList.begin(); OpenSceneGraph/trunk/include/osgSim/OverlayNode
r7225 r7375 37 37 OBJECT_DEPENDENT_WITH_ORTHOGRAPHIC_OVERLAY, 38 38 VIEW_DEPENDENT_WITH_ORTHOGRAPHIC_OVERLAY, 39 VIEW_DEPENDENT_WITH_PERSPECTIVE_OVERLAY ,39 VIEW_DEPENDENT_WITH_PERSPECTIVE_OVERLAY 40 40 }; 41 41 OpenSceneGraph/trunk/include/osgUtil/StateGraph
r7357 r7375 68 68 StateGraph(): 69 69 osg::Referenced(false), 70 _parent(NULL), 71 _stateset(NULL), 70 _parent(NULL), 71 _stateset(NULL), 72 72 _depth(0), 73 73 _averageDistance(0), … … 80 80 StateGraph(StateGraph* parent,const osg::StateSet* stateset): 81 81 osg::Referenced(false), 82 _parent(parent), 82 _parent(parent), 83 83 _stateset(stateset), 84 84 _depth(0), OpenSceneGraph/trunk/src/osg/BufferObject.cpp
r7101 r7375 352 352 353 353 unsigned int totalSizeRequired = 0; 354 unsigned int numModified = 0;355 unsigned int numNotModified = 0;354 // unsigned int numModified = 0; 355 // unsigned int numNotModified = 0; 356 356 for(BufferEntryArrayPairs::const_iterator itr = _bufferEntryArrayPairs.begin(); 357 357 itr != _bufferEntryArrayPairs.end(); … … 521 521 522 522 unsigned int totalSizeRequired = 0; 523 unsigned int numModified = 0;524 unsigned int numNotModified = 0;523 // unsigned int numModified = 0; 524 // unsigned int numNotModified = 0; 525 525 for(BufferEntryDrawElementsPairs::const_iterator itr = _bufferEntryDrawElementsPairs.begin(); 526 526 itr != _bufferEntryDrawElementsPairs.end(); OpenSceneGraph/trunk/src/osg/Camera.cpp
r7178 r7375 22 22 _clearMask(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT), 23 23 _transformOrder(PRE_MULTIPLY), 24 _projectionResizePolicy(HORIZONTAL), 24 25 _renderOrder(POST_RENDER), 25 _projectionResizePolicy(HORIZONTAL),26 26 _renderOrderNum(0), 27 27 _drawBuffer(GL_NONE), … … 38 38 _view(camera._view), 39 39 _allowEventFocus(camera._allowEventFocus), 40 _displaySettings(camera._displaySettings), 40 41 _clearColor(camera._clearColor), 41 _displaySettings(camera._displaySettings),42 42 _clearMask(camera._clearMask), 43 43 _colorMask(camera._colorMask), OpenSceneGraph/trunk/src/osg/Geometry.cpp
r7170 r7375 1245 1245 State& state = *renderInfo.getState(); 1246 1246 1247 unsigned int contextID = state.getContextID();1247 // unsigned int contextID = state.getContextID(); 1248 1248 1249 1249 // osg::notify(osg::NOTICE)<<"Geometry::drawImplementation"<<std::endl; OpenSceneGraph/trunk/src/osgDB/Registry.cpp
r7292 r7375 1330 1330 } 1331 1331 _archiveExtList.push_back(ext); 1332 } ;1332 } 1333 1333 1334 1334 ReaderWriter::ReadResult Registry::read(const ReadFunctor& readFunctor) OpenSceneGraph/trunk/src/osgGA/EventQueue.cpp
r6699 r7375 368 368 369 369 addEvent(event); 370 } ;371 372 370 } 371 372 OpenSceneGraph/trunk/src/osgPlugins/Inventor/ConvertToInventor.h
r7348 r7375 42 42 class TexEnv; 43 43 class TexGen; 44 } ;44 } 45 45 46 46 OpenSceneGraph/trunk/src/osgPlugins/Inventor/GroupSoLOD.cpp
r2225 r7375 4 4 #include "GroupSoLOD.h" 5 5 6 SO_NODE_SOURCE(GroupSoLOD) ;6 SO_NODE_SOURCE(GroupSoLOD) 7 7 8 8 void GroupSoLOD::initClass() OpenSceneGraph/trunk/src/osgPlugins/dds/ReaderWriterDDS.cpp
r7076 r7375 315 315 }; 316 316 317 const int UNSUPPORTED = 0;317 const unsigned int UNSUPPORTED = 0; 318 318 319 319 static const RGBFormat rgbFormats[] = … … 356 356 bool found = false; 357 357 358 for ( int i = 0; i < sizeof ( rgbFormats ) / sizeof ( RGBFormat ); i++ )358 for ( unsigned int i = 0; i < sizeof ( rgbFormats ) / sizeof ( RGBFormat ); i++ ) 359 359 { 360 360 const RGBFormat& f = rgbFormats[ i ]; OpenSceneGraph/trunk/src/osgPlugins/gif/ReaderWriterGIF.cpp
r7076 r7375 49 49 { 50 50 #include <gif_lib.h> 51 } ;51 } 52 52 53 53 #define ERR_NO_ERROR 0 OpenSceneGraph/trunk/src/osgPlugins/jpeg/ReaderWriterJPEG.cpp
r7076 r7375 50 50 #include <jpeglib.h> 51 51 #include "jerror.h" 52 } ;52 } 53 53 54 54 #include <setjmp.h> OpenSceneGraph/trunk/src/osgPlugins/logo/ReaderWriterLOGO.cpp
r7076 r7375 249 249 else if( str == "Camera" ) 250 250 { 251 unsigned intn;252 if( (fscanf( fp, "%d", & n )) != 1 )251 int tn; 252 if( (fscanf( fp, "%d", &tn )) != 1 ) 253 253 { 254 254 osg::notify(osg::WARN) << "Error... Camera requires an integer argument\n"; 255 255 break; 256 256 } 257 258 if (tn < 0) 259 { 260 osg::notify(osg::WARN) << "Error... Camera requires an positive or null value argument\n"; 261 break; 262 } 263 264 unsigned int n = static_cast<unsigned int>(tn); 257 265 if( screen != n ) 258 266 { OpenSceneGraph/trunk/src/osgPlugins/lwo/old_Lwo2.cpp
r4801 r7375 61 61 delete (*itr_surf).second; 62 62 } 63 } ;63 } 64 64 65 65 bool OpenSceneGraph/trunk/src/osgPlugins/net/sockinet.cpp
r7184 r7375 67 67 #endif 68 68 69 void herror(const char*); 69 // need add throw() under Linux when compile with aggressive warning 70 void herror(const char*) throw(); 70 71 71 72 sockinetaddr::sockinetaddr () OpenSceneGraph/trunk/src/osgPlugins/txp/ReaderWriterTXP.cpp
r7076 r7375 78 78 int x,y,lod; 79 79 unsigned int id; 80 sscanf(name.c_str(),"tile%d_%dx%d_% d",&lod,&x,&y,&id);80 sscanf(name.c_str(),"tile%d_%dx%d_%u",&lod,&x,&y,&id); 81 81 TXPArchive* archive = getArchive(id,osgDB::getFilePath(file)); 82 82 … … 192 192 int x,y,lod; 193 193 unsigned int id; 194 sscanf(name.c_str(),"subtiles%d_%dx%d_% d",&lod,&x,&y,&id);194 sscanf(name.c_str(),"subtiles%d_%dx%d_%u",&lod,&x,&y,&id); 195 195 TXPArchive* archive = getArchive(id,osgDB::getFilePath(file)); 196 196 … … 208 208 int nbChild; 209 209 210 sscanf(name.c_str(),"subtiles%d_%dx%d_% d_%d",&lod,&x,&y,&id, &nbChild);210 sscanf(name.c_str(),"subtiles%d_%dx%d_%u_%d",&lod,&x,&y,&id, &nbChild); 211 211 std::vector<TXPArchive::TileLocationInfo> locs; 212 212 bool status = true; OpenSceneGraph/trunk/src/osgSim/OverlayNode.cpp
r7328 r7375 1180 1180 { 1181 1181 osg::notify(osg::INFO)<<"OverlayNode::init() - OBJECT_DEPENDENT_WITH_ORTHOGRAPHIC_OVERLAY"<<std::endl; 1182 OverlayData& overlayData = getOverlayData(0); 1182 1183 // force initialization of _overlayDataMap for the key 0 (or NULL) 1184 getOverlayData(0); 1183 1185 } 1184 1186 … … 1564 1566 { 1565 1567 // osg::notify(osg::NOTICE)<<"ratio = "<<ratio<<std::endl; 1566 double original_width = max_side-min_side;1568 // double original_width = max_side-min_side; 1567 1569 1568 1570 double minRatio = 0.02; … … 1623 1625 { 1624 1626 lowest_up = local_base_up; 1625 double side_over_up = delta_side / delta_up;1627 // double side_over_up = delta_side / delta_up; 1626 1628 } 1627 1629 } … … 1641 1643 max_side = mid_side + max_half_width; 1642 1644 1643 double new_width = max_side-min_side;1645 // double new_width = max_side-min_side; 1644 1646 1645 1647 OpenSceneGraph/trunk/src/osgTerrain/GeometryTechnique.cpp
r7293 r7375 376 376 377 377 // populate primitive sets 378 bool optimizeOrientations = _elevations!=0;378 // bool optimizeOrientations = _elevations!=0; 379 379 bool swapOrientation = !(masterLocator->orientationOpenGL()); 380 380 OpenSceneGraph/trunk/src/osgUtil/CullVisitor.cpp
r7205 r7375 202 202 { 203 203 204 osg::Timer_t start_t = osg::Timer::instance()->tick();204 // osg::Timer_t start_t = osg::Timer::instance()->tick(); 205 205 206 206 // update near from defferred list of drawables … … 220 220 } 221 221 222 osg::Timer_t end_t = osg::Timer::instance()->tick();222 // osg::Timer_t end_t = osg::Timer::instance()->tick(); 223 223 // osg::notify(osg::NOTICE)<<"Took "<<osg::Timer::instance()->delta_m(start_t,end_t)<<"ms to test "<<numTests<<" out of "<<_nearPlaneCandidateMap.size()<<std::endl; 224 224 … … 1207 1207 osgUtil::RenderStage* previous_stage = getCurrentRenderBin()->getStage(); 1208 1208 1209 unsigned int contextID = getState() ? getState()->getContextID() : 0;1209 // unsigned int contextID = getState() ? getState()->getContextID() : 0; 1210 1210 1211 1211 // use render to texture stage. OpenSceneGraph/trunk/src/osgViewer/ViewerEventHandlers.cpp
r7186 r7375 143 143 int y; 144 144 int width; 145 int height;145 int height; 146 146 147 147 window->getWindowRectangle(x, y, width, height); 148 148 149 bool isFullScreen = x == 0 && y == 0 && width == screenWidth && height ==screenHeight;149 bool isFullScreen = x == 0 && y == 0 && width == (int)screenWidth && height == (int)screenHeight; 150 150 151 151 if (isFullScreen) … … 189 189 int y; 190 190 int width; 191 int height;191 int height; 192 192 193 193 window->getWindowRectangle(x, y, width, height); 194 194 195 bool isFullScreen = x == 0 && y == 0 && width == screenWidth && height ==screenHeight;195 bool isFullScreen = x == 0 && y == 0 && width == (int)screenWidth && height == (int)screenHeight; 196 196 197 197 if (window->getWindowDecoration() == true || isFullScreen == false) … … 357 357 _currentlyPlaying(false), 358 358 _delta(0.0f), 359 _ lastFrameTime(osg::Timer::instance()->tick()),360 _ animStartTime(0)359 _animStartTime(0), 360 _lastFrameTime(osg::Timer::instance()->tick()) 361 361 { 362 362 _animPath = new osg::AnimationPath(); OpenSceneGraph/trunk/src/osgWrappers/osg/Array.cpp
r6903 r7375 2085 2085 2086 2086 2087 STD_VECTOR_REFLECTOR(std::vector<osg::Vec2>) ;2088 STD_VECTOR_REFLECTOR(std::vector<osg::Vec3>) ;2089 STD_VECTOR_REFLECTOR(std::vector<osg::Vec4>) ;2090 STD_VECTOR_REFLECTOR(std::vector<osg::Vec2b>) ;2091 STD_VECTOR_REFLECTOR(std::vector<osg::Vec3b>) ;2092 STD_VECTOR_REFLECTOR(std::vector<osg::Vec4b>) ;2093 STD_VECTOR_REFLECTOR(std::vector<osg::Vec2s>) ;2094 STD_VECTOR_REFLECTOR(std::vector<osg::Vec3s>) ;2095 STD_VECTOR_REFLECTOR(std::vector<osg::Vec4s>) ;2096 STD_VECTOR_REFLECTOR(std::vector<osg::Vec4ub>) ;2097 STD_VECTOR_REFLECTOR(std::vector<GLubyte>) ;2098 STD_VECTOR_REFLECTOR(std::vector<GLbyte>) ;2099 STD_VECTOR_REFLECTOR(std::vector<GLushort>) ;2100 STD_VECTOR_REFLECTOR(std::vector<GLshort>) ;2101 STD_VECTOR_REFLECTOR(std::vector<GLuint>) ;2102 STD_VECTOR_REFLECTOR(std::vector<GLint>) ;2087 STD_VECTOR_REFLECTOR(std::vector<osg::Vec2>) 2088 STD_VECTOR_REFLECTOR(std::vector<osg::Vec3>) 2089 STD_VECTOR_REFLECTOR(std::vector<osg::Vec4>) 2090 STD_VECTOR_REFLECTOR(std::vector<osg::Vec2b>) 2091 STD_VECTOR_REFLECTOR(std::vector<osg::Vec3b>) 2092 STD_VECTOR_REFLECTOR(std::vector<osg::Vec4b>) 2093 STD_VECTOR_REFLECTOR(std::vector<osg::Vec2s>) 2094 STD_VECTOR_REFLECTOR(std::vector<osg::Vec3s>) 2095 STD_VECTOR_REFLECTOR(std::vector<osg::Vec4s>) 2096 STD_VECTOR_REFLECTOR(std::vector<osg::Vec4ub>) 2097 STD_VECTOR_REFLECTOR(std::vector<GLubyte>) 2098 STD_VECTOR_REFLECTOR(std::vector<GLbyte>) 2099 STD_VECTOR_REFLECTOR(std::vector<GLushort>) 2100 STD_VECTOR_REFLECTOR(std::vector<GLshort>) 2101 STD_VECTOR_REFLECTOR(std::vector<GLuint>) 2102 STD_VECTOR_REFLECTOR(std::vector<GLint>) 2103 2103 OpenSceneGraph/trunk/src/osgWrappers/osg/StateSet.cpp
r7212 r7375 768 768 END_REFLECTOR 769 769 770 STD_MAP_REFLECTOR_WITH_TYPES(std::map< osg::StateAttribute::GLMode COMMA osg::StateAttribute::GLModeValue >, osg::StateAttribute::GLMode, osg::StateAttribute::Values) ;770 STD_MAP_REFLECTOR_WITH_TYPES(std::map< osg::StateAttribute::GLMode COMMA osg::StateAttribute::GLModeValue >, osg::StateAttribute::GLMode, osg::StateAttribute::Values) 771 771 STD_MAP_REFLECTOR(std::map< osg::StateAttribute::TypeMemberPair COMMA osg::StateSet::RefAttributePair >) 772 772
