- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/view/ReaderWriterOsgViewer.cpp
r12292 r13041 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2007 Robert Osfield 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2007 Robert Osfield 2 2 * 3 * This application is open source and may be redistributed and/or modified 3 * This application is open source and may be redistributed and/or modified 4 4 * freely and without restriction, both in commercial and non commercial 5 5 * applications, as long as this copyright notice is maintained. 6 * 6 * 7 7 * This application is distributed in the hope that it will be useful, 8 8 * but WITHOUT ANY WARRANTY; without even the implied warranty of … … 31 31 supportsOption("OutputTextureFiles","Output texture image to file"); 32 32 } 33 33 34 34 virtual const char* className() const { return "osgViewer configuration loader"; } 35 35 … … 42 42 while (iss >> opt) 43 43 { 44 if(opt=="PRECISION" || opt=="precision") 44 if(opt=="PRECISION" || opt=="precision") 45 45 { 46 46 int prec; … … 54 54 } 55 55 } 56 } 56 } 57 57 58 58 … … 66 66 if (fileName.empty()) return ReadResult::FILE_NOT_FOUND; 67 67 68 // code for setting up the database path so that internally referenced file are searched for on relative paths. 68 // code for setting up the database path so that internally referenced file are searched for on relative paths. 69 69 osgDB::ifstream fin(fileName.c_str()); 70 70 if (fin)
