Ignore:
Timestamp:
Mar 20, 2011, 1:50:24 PM (13 years ago)
Author:
Torben Dannhauer
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • experimental/TerrainTest/myTileLoadedCallback.h

    r275 r276  
    11#pragma once
    22#include <osgTerrain/TerrainTile>
    3 #include "myTerrainTechnique.h"
    43
    54
    65namespace osgTerrain {
    76
    8 class  myTileLoadedCallback : public TerrainTile::TileLoadedCallback
     7template <class T>
     8class  GeometryTechniquePrototypeWorkaroundTLC : public TerrainTile::TileLoadedCallback
    99{
    1010public:
    1111        //! Constructor: Nothing to do.
    12         myTileLoadedCallback() {};
     12        GeometryTechniquePrototypeWorkaroundTLC() {};
    1313
    1414        //! Destructor: Nothing to do.
    15         virtual ~myTileLoadedCallback() {};
     15        virtual ~GeometryTechniquePrototypeWorkaroundTLC() {};
    1616
    1717        /**
     
    3030         * @param options : Reader writer optins. Defined as interface, but in this class not used.
    3131         */
    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() );};
    3333};
    3434
Note: See TracChangeset for help on using the changeset viewer.