- Timestamp:
- 03/21/12 18:36:20 (15 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/logo/ReaderWriterLOGO.cpp
r12912 r13041 58 58 { 59 59 logos->getViewport()->setViewport( vp->x(), vp->y(), vp->width(), vp->height() ); 60 logos->dirtyDisplayList(); 60 logos->dirtyDisplayList(); 61 61 } 62 62 } … … 66 66 }; 67 67 68 Logos() 68 Logos() 69 69 { 70 70 osg::StateSet *sset = new osg::StateSet; … … 75 75 sset->setMode( GL_DEPTH_TEST, osg::StateAttribute::OFF ); 76 76 sset->setTextureMode( 0, GL_TEXTURE_2D, osg::StateAttribute::OFF ); 77 #if 1 77 #if 1 78 78 // for now we'll crudely set the bin number to 100 to force it to draw later and ontop of the scene 79 79 sset->setRenderBinDetails( 100 , "RenderBin" ); … … 98 98 #if !defined(OSG_GLES1_AVAILABLE) && !defined(OSG_GLES2_AVAILABLE) && !defined(OSG_GL3_AVAILABLE) 99 99 100 if( renderInfo.getContextID() != _contextID ) 100 if( renderInfo.getContextID() != _contextID ) 101 101 return; 102 102 … … 169 169 glMatrixMode( GL_PROJECTION ); 170 170 glPopMatrix(); 171 glMatrixMode( GL_MODELVIEW ); 171 glMatrixMode( GL_MODELVIEW ); 172 172 #else 173 173 OSG_NOTICE<<"Warning: Logos::drawImplementation(..) not supported."<<std::endl; … … 201 201 } 202 202 203 virtual osg::BoundingBox computeBound() const 203 virtual osg::BoundingBox computeBound() const 204 204 { 205 205 return osg::BoundingBox( -1, -1, -1, 1, 1, 1); … … 226 226 supportsExtension("logo","Ascii logo placement format"); 227 227 } 228 228 229 229 virtual const char* className() const { return "Logo Database Reader/Writer"; } 230 230 … … 235 235 236 236 std::string fileName = osgDB::findDataFile( file, options ); 237 if (fileName.empty()) 237 if (fileName.empty()) 238 238 return ReadResult::FILE_NOT_FOUND; 239 239 … … 290 290 break; 291 291 } 292 292 293 293 if (tn < 0) 294 294 { … … 296 296 break; 297 297 } 298 298 299 299 unsigned int n = static_cast<unsigned int>(tn); 300 300 if( screen != n ) … … 318 318 } 319 319 fclose( fp ); 320 320 321 321 if( ld->hasLogos() ) 322 322 geode->addDrawable( ld ); 323 323 324 324 geode->setCullingActive(false); 325 325 return geode;
