Changeset 171 for experimental
- Timestamp:
- Dec 6, 2010, 10:07:21 PM (14 years ago)
- Location:
- experimental/TerrainTest
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
experimental/TerrainTest/myTerrainTechnique.cpp
r170 r171 32 32 h->setHeight( 0,0, 1000); 33 33 34 ImageLayer* il = dynamic_cast<ImageLayer*>( getTerrainTile()->getColorLayer(0) ); 35 osg::Image* img = il->getImage(); 36 img->setInternalTextureFormat( GL_RGBA ); 37 38 osg::ref_ptr<osg::Image> img2 = new osg::Image(); 39 img2->setInternalTextureFormat( GL_RGBA ); 40 img2->alloc 41 34 42 GeometryTechnique::init(dirtyMask, assumeMultiThreaded); 35 43 } -
experimental/TerrainTest/myTerrainTechnique.h
r169 r171 2 2 3 3 #include <osgTerrain/GeometryTechnique> 4 #include <osg/Image> 4 5 5 6 namespace osgTerrain { -
experimental/TerrainTest/osgterrain.cpp
r169 r171 215 215 } 216 216 217 //osgDB::DatabasePager::create()->setDoPreCompile(true); 218 217 219 osgTerrain::Terrain* terrain = findTopMostNodeOfType<osgTerrain::Terrain>(rootnode); 218 220 if (!terrain)
Note: See TracChangeset
for help on using the changeset viewer.