From 67cb59dbef93862f9c4d147be1206243c6bb15ef Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sun, 6 Jun 2004 14:28:29 +0000 Subject: [PATCH] Added --RGB_16, --RGB_24 and --compressed options. --- examples/osgdem/osgdem.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/examples/osgdem/osgdem.cpp b/examples/osgdem/osgdem.cpp index 6fe16bd96..8cabcc0b8 100644 --- a/examples/osgdem/osgdem.cpp +++ b/examples/osgdem/osgdem.cpp @@ -183,6 +183,10 @@ int main( int argc, char **argv ) arguments.getApplicationUsage()->addCommandLineOption("--LOD","Create a LOD'd database"); arguments.getApplicationUsage()->addCommandLineOption("--PagedLOD","Create a PagedLOD'd database"); arguments.getApplicationUsage()->addCommandLineOption("-v","Set the vertical multiplier"); + arguments.getApplicationUsage()->addCommandLineOption("--compressed","Use OpenGL compression on destination imagery"); + arguments.getApplicationUsage()->addCommandLineOption("--RGB_16","Use 16bit RGB destination imagery"); + arguments.getApplicationUsage()->addCommandLineOption("--RGB_24","Use 24bit RGB destination imagery"); + arguments.getApplicationUsage()->addCommandLineOption("",""); if (arguments.argc()<=1) { @@ -220,6 +224,10 @@ int main( int argc, char **argv ) dataset->setDatabaseType(osgTerrain::DataSet::PagedLOD_DATABASE); } + while (arguments.read("--compressed")) { dataset->setTextureType(osgTerrain::DataSet::COMPRESSED_TEXTURE); } + while (arguments.read("--RGB_16")) { dataset->setTextureType(osgTerrain::DataSet::RGB_16_BIT); } + while (arguments.read("--RGB_24")) { dataset->setTextureType(osgTerrain::DataSet::RGB_24_BIT); } + dataset->setDestinationTileBaseName("output"); dataset->setDestinationTileExtension(".ive"); @@ -422,16 +430,28 @@ int main( int argc, char **argv ) { std::cout<<"-d "<