Rev | Line | |
---|
[165] | 1 | #include "myTileLoadedCallback.h" |
---|
| 2 | #include <osgTerrain/Terrain> |
---|
| 3 | |
---|
| 4 | #include "myTerrainTechnique.h" |
---|
| 5 | |
---|
| 6 | using namespace osgTerrain; |
---|
| 7 | |
---|
| 8 | myTileLoadedCallback::myTileLoadedCallback(osgTerrain::Terrain* terrain) : _terrain(terrain) |
---|
| 9 | { |
---|
| 10 | |
---|
| 11 | } |
---|
| 12 | |
---|
| 13 | myTileLoadedCallback::~myTileLoadedCallback() |
---|
| 14 | { |
---|
| 15 | |
---|
| 16 | } |
---|
| 17 | |
---|
| 18 | bool myTileLoadedCallback::deferExternalLayerLoading() const |
---|
| 19 | { |
---|
| 20 | return true; |
---|
| 21 | } |
---|
| 22 | |
---|
| 23 | void myTileLoadedCallback::loaded(osgTerrain::TerrainTile* tile, const osgDB::ReaderWriter::Options* options) const |
---|
| 24 | { |
---|
| 25 | OSG_ALWAYS << "Executing myTileLoadedCallback!" << std::endl; |
---|
| 26 | tile->setTerrainTechnique( new osgTerrain::myTerrainTechnique() ); |
---|
| 27 | } |
---|
| 28 | |
---|
Note: See
TracBrowser
for help on using the repository browser.