Changeset 276 for experimental/TerrainTest/myTileLoadedCallback.h
- Timestamp:
- Mar 20, 2011, 1:50:24 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
experimental/TerrainTest/myTileLoadedCallback.h
r275 r276 1 1 #pragma once 2 2 #include <osgTerrain/TerrainTile> 3 #include "myTerrainTechnique.h"4 3 5 4 6 5 namespace osgTerrain { 7 6 8 class myTileLoadedCallback : public TerrainTile::TileLoadedCallback 7 template <class T> 8 class GeometryTechniquePrototypeWorkaroundTLC : public TerrainTile::TileLoadedCallback 9 9 { 10 10 public: 11 11 //! Constructor: Nothing to do. 12 myTileLoadedCallback() {};12 GeometryTechniquePrototypeWorkaroundTLC() {}; 13 13 14 14 //! Destructor: Nothing to do. 15 virtual ~ myTileLoadedCallback() {};15 virtual ~GeometryTechniquePrototypeWorkaroundTLC() {}; 16 16 17 17 /** … … 30 30 * @param options : Reader writer optins. Defined as interface, but in this class not used. 31 31 */ 32 virtual void loaded(osgTerrain::TerrainTile* tile, const osgDB::ReaderWriter::Options* options) const {tile->setTerrainTechnique( new osgTerrain::myTerrainTechnique() );};32 virtual void loaded(osgTerrain::TerrainTile* tile, const osgDB::ReaderWriter::Options* options) const {tile->setTerrainTechnique( new T() );}; 33 33 }; 34 34
Note: See TracChangeset
for help on using the changeset viewer.