From ec1fd733b8b3933805dae22bcf91c5572c3c0f0f Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sun, 21 Mar 2004 12:17:44 +0000 Subject: [PATCH] Added TextureType and GeometryType parameters to DataSet. These will be used to control what type of database is generated. --- examples/osgdem/osgdem.cpp | 56 ++++++++++++++++++++++++++------------ include/osgTerrain/DataSet | 20 ++++++++++++++ src/osgTerrain/DataSet.cpp | 4 ++- 3 files changed, 61 insertions(+), 19 deletions(-) diff --git a/examples/osgdem/osgdem.cpp b/examples/osgdem/osgdem.cpp index dc6991c12..1e4cf3fa4 100644 --- a/examples/osgdem/osgdem.cpp +++ b/examples/osgdem/osgdem.cpp @@ -136,8 +136,6 @@ int main( int argc, char **argv ) int pos = 1; while(pos _rootNode; diff --git a/src/osgTerrain/DataSet.cpp b/src/osgTerrain/DataSet.cpp index 9ab677e88..aaff8cd9f 100644 --- a/src/osgTerrain/DataSet.cpp +++ b/src/osgTerrain/DataSet.cpp @@ -2147,7 +2147,9 @@ DataSet::DataSet() _defaultColor.set(0.5f,0.5f,1.0f,1.0f); _databaseType = PagedLOD_DATABASE; - + _geometryType = POLYGONAL; + _textureType = COMPRESSED_TEXTURE; + } void DataSet::init()