Introduced TerrainTile::TileLoadedCallback

This commit is contained in:
Robert Osfield
2008-09-10 18:11:54 +00:00
parent ed4bd41574
commit b4b5b5ea41
8 changed files with 82 additions and 10 deletions

View File

@@ -19,6 +19,17 @@
using namespace osg;
using namespace osgTerrain;
void TerrainTile::setTileLoadedCallback(TerrainTile::TileLoadedCallback* lc)
{
getTileLoadedCallback() = lc;
}
osg::ref_ptr<TerrainTile::TileLoadedCallback>& TerrainTile::getTileLoadedCallback()
{
static osg::ref_ptr<TileLoadedCallback> s_TileLoadedCallback;
return s_TileLoadedCallback;
}
TerrainTile::TerrainTile():
_terrain(0),
_hasBeenTraversal(false),