- Timestamp:
- 09/10/08 20:11:54 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgmultitexturecontrol/osgmultitexturecontrol.cpp
r8639 r8840 40 40 41 41 #include <osgTerrain/Terrain> 42 #include <osgTerrain/TerrainTile> 42 43 43 44 #include <osgViewer/ViewerEventHandlers> … … 233 234 }; 234 235 236 237 struct CustomTileLoadedCallback : public osgTerrain::TerrainTile::TileLoadedCallback 238 { 239 CustomTileLoadedCallback() 240 { 241 } 242 243 virtual bool deferExternalLayerLoading() const 244 { 245 return true; 246 } 247 248 virtual void loaded(osgTerrain::TerrainTile* tile, const osgDB::ReaderWriter::Options* options) const 249 { 250 osg::notify(osg::NOTICE)<<"Need to decide what to do here guys"<<std::endl; 251 } 252 }; 253 235 254 int main( int argc, char **argv ) 236 255 { … … 241 260 arguments.getApplicationUsage()->addCommandLineOption("--login <url> <username> <password>","Provide authentication information for http file access."); 242 261 262 263 // set the tile loaded callback to load the optional imagery 264 osgTerrain::TerrainTile::setTileLoadedCallback(new CustomTileLoadedCallback()); 265 243 266 // construct the viewer. 244 267 osgViewer::Viewer viewer(arguments);
