Changeset 13041 for OpenSceneGraph/trunk/src/osgDB/ReaderWriter.cpp
- Timestamp:
- 03/21/12 18:36:20 (15 months ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/src/osgDB/ReaderWriter.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgDB/ReaderWriter.cpp
r10543 r13041 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 2 2 * 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 5 5 * (at your option) any later version. The full license is in LICENSE file 6 6 * included with this distribution, and on the openscenegraph.org website. 7 * 7 * 8 8 * This library is distributed in the hope that it will be useful, 9 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 11 * OpenSceneGraph Public License for more details. 12 12 */ … … 43 43 std::string lowercase_ext = convertToLowerCase(extension); 44 44 if (_supportedExtensions.count(lowercase_ext)!=0) return true; 45 45 46 46 // if plugin supports wildcard extension then passthrough all types 47 47 return (_supportedExtensions.count("*")!=0); … … 96 96 } FeatureStringList; 97 97 98 FeatureStringList list[] = { 98 FeatureStringList list[] = { 99 99 { FEATURE_READ_OBJECT, "readObject" }, 100 { FEATURE_READ_IMAGE, "readImage" }, 100 { FEATURE_READ_IMAGE, "readImage" }, 101 101 { FEATURE_READ_HEIGHT_FIELD, "readHeightField" }, 102 { FEATURE_READ_NODE, "readNode" }, 103 { FEATURE_READ_SHADER, "readShader" }, 102 { FEATURE_READ_NODE, "readNode" }, 103 { FEATURE_READ_SHADER, "readShader" }, 104 104 { FEATURE_WRITE_OBJECT, "writeObject" }, 105 { FEATURE_WRITE_IMAGE, "writeImage" }, 105 { FEATURE_WRITE_IMAGE, "writeImage" }, 106 106 { FEATURE_WRITE_HEIGHT_FIELD, "writeHeightField" }, 107 { FEATURE_WRITE_NODE, "writeNode" }, 107 { FEATURE_WRITE_NODE, "writeNode" }, 108 108 { FEATURE_WRITE_SHADER, "writeShader" }, 109 109 { FEATURE_NONE,0 } 110 110 }; 111 111 112 FeatureList result; 113 112 FeatureList result; 113 114 114 for(FeatureStringList *p=list; p->feature != 0; p++) 115 115 {
