Changeset 11472 for OpenSceneGraph/trunk/src/osg/OcclusionQueryNode.cpp
- Timestamp:
- 05/28/10 17:47:52 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osg/OcclusionQueryNode.cpp
r11127 r11472 207 207 // in a valid Extensions pointer, and hope it's valid for any 208 208 // context that might be current. 209 osg::notify( osg::DEBUG_INFO )<< "osgOQ: RQCB: Using fallback path to obtain Extensions pointer." << std::endl;209 OSG_DEBUG << "osgOQ: RQCB: Using fallback path to obtain Extensions pointer." << std::endl; 210 210 ext = _extensionsFallback; 211 211 if (!ext) 212 212 { 213 osg::notify( osg::FATAL )<< "osgOQ: RQCB: Extensions pointer fallback is NULL." << std::endl;213 OSG_FATAL << "osgOQ: RQCB: Extensions pointer fallback is NULL." << std::endl; 214 214 return; 215 215 } … … 232 232 } 233 233 234 osg::notify( osg::DEBUG_INFO )<<234 OSG_DEBUG << 235 235 "osgOQ: RQCB: Retrieving..." << std::endl; 236 236 … … 254 254 ext->glGetQueryObjectiv( tr->_id, GL_QUERY_RESULT, &(tr->_numPixels) ); 255 255 if (tr->_numPixels < 0) 256 osg::notify( osg::WARN )<< "osgOQ: RQCB: " <<256 OSG_WARN << "osgOQ: RQCB: " << 257 257 "glGetQueryObjectiv returned negative value (" << tr->_numPixels << ")." << std::endl; 258 258 … … 266 266 267 267 elapsedTime = timer.delta_s(start_tick,timer.tick()); 268 osg::notify( osg::INFO )<< "osgOQ: RQCB: " << "Retrieved " << count <<268 OSG_INFO << "osgOQ: RQCB: " << "Retrieved " << count << 269 269 " queries in " << elapsedTime << " seconds." << std::endl; 270 270 } … … 304 304 if (!_rqcb) 305 305 { 306 osg::notify( osg::FATAL )<< "osgOQ: CQCB: Invalid RQCB." << std::endl;306 OSG_FATAL << "osgOQ: CQCB: Invalid RQCB." << std::endl; 307 307 return; 308 308 } … … 385 385 if (!rqcb) 386 386 { 387 osg::notify( osg::FATAL )<< "osgOQ: QG: Invalid RQCB." << std::endl;387 OSG_FATAL << "osgOQ: QG: Invalid RQCB." << std::endl; 388 388 return; 389 389 } … … 399 399 } 400 400 401 osg::notify( osg::DEBUG_INFO )<<401 OSG_DEBUG << 402 402 "osgOQ: QG: Querying for: " << _oqnName << std::endl; 403 403 … … 408 408 409 409 410 osg::notify( osg::DEBUG_INFO )<<410 OSG_DEBUG << 411 411 "osgOQ: QG. OQNName: " << _oqnName << 412 412 ", Ctx: " << contextID << … … 416 416 GLenum err; 417 417 if ((err = glGetError()) != GL_NO_ERROR) 418 osg::notify( osg::FATAL ) << 419 "osgOQ: QG: OpenGL error: " << err << "." << std::endl; 418 { 419 OSG_FATAL << "osgOQ: QG: OpenGL error: " << err << "." << std::endl; 420 } 420 421 } 421 422 #endif … … 574 575 if (_queryGeode->getDrawable( 0 ) == NULL) 575 576 { 576 osg::notify( osg::FATAL ) << 577 "osgOQ: OcclusionQueryNode: No QueryGeometry." << std::endl; 577 OSG_FATAL << "osgOQ: OcclusionQueryNode: No QueryGeometry." << std::endl; 578 578 // Something's broke. Return true so we at least render correctly. 579 579 return true; … … 697 697 if (!_queryGeode) 698 698 { 699 osg::notify( osg::WARN )<< "osgOQ: OcclusionQueryNode:: Invalid query support node." << std::endl;699 OSG_WARN << "osgOQ: OcclusionQueryNode:: Invalid query support node." << std::endl; 700 700 return; 701 701 } … … 708 708 if (!_queryGeode) 709 709 { 710 osg::notify( osg::WARN )<< "osgOQ: OcclusionQueryNode:: Invalid query support node." << std::endl;710 OSG_WARN << "osgOQ: OcclusionQueryNode:: Invalid query support node." << std::endl; 711 711 return NULL; 712 712 } … … 719 719 if (!_queryGeode) 720 720 { 721 osg::notify( osg::WARN )<< "osgOQ: OcclusionQueryNode:: Invalid query support node." << std::endl;721 OSG_WARN << "osgOQ: OcclusionQueryNode:: Invalid query support node." << std::endl; 722 722 return NULL; 723 723 } … … 730 730 if (!_debugGeode) 731 731 { 732 osg::notify( osg::WARN )<< "osgOQ: OcclusionQueryNode:: Invalid debug support node." << std::endl;732 OSG_WARN << "osgOQ: OcclusionQueryNode:: Invalid debug support node." << std::endl; 733 733 return; 734 734 } … … 741 741 if (!_debugGeode.valid()) 742 742 { 743 osg::notify( osg::WARN )<< "osgOQ: OcclusionQueryNode:: Invalid debug support node." << std::endl;743 OSG_WARN << "osgOQ: OcclusionQueryNode:: Invalid debug support node." << std::endl; 744 744 return NULL; 745 745 } … … 751 751 if (!_debugGeode.valid()) 752 752 { 753 osg::notify( osg::WARN )<< "osgOQ: OcclusionQueryNode:: Invalid debug support node." << std::endl;753 OSG_WARN << "osgOQ: OcclusionQueryNode:: Invalid debug support node." << std::endl; 754 754 return NULL; 755 755 }
