- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/gta/ReaderWriterGTA.cpp
r12984 r13041 13 13 /* Copyright (C) 2011 Martin Lambers 14 14 * 15 * This library is open source and may be redistributed and/or modified under 16 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 15 * This library is open source and may be redistributed and/or modified under 16 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 17 17 * (at your option) any later version. The full license is in LICENSE file 18 18 * included with this distribution, and on the openscenegraph.org website. 19 * 19 * 20 20 * This library is distributed in the hope that it will be useful, 21 21 * but WITHOUT ANY WARRANTY; without even the implied warranty of 22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23 23 * OpenSceneGraph Public License for more details. 24 24 */ … … 27 27 { 28 28 public: 29 29 30 30 ReaderWriterGTA() 31 31 { … … 33 33 supportsOption("COMPRESSION","Set compression method: NONE, ZLIB (default), ZLIB1,...,ZLIB9, BZIP2, or XZ"); 34 34 } 35 35 36 36 virtual const char* className() const { return "GTA Image Reader"; } 37 37 38 38 virtual bool acceptsExtension(const std::string& extension) const 39 { 39 { 40 40 return osgDB::equalCaseInsensitive(extension,"gta"); 41 41 } … … 84 84 throw std::exception(); 85 85 } 86 pixelFormat = 86 pixelFormat = 87 87 hdr.components() == 1 ? GL_LUMINANCE : 88 88 hdr.components() == 2 ? GL_LUMINANCE_ALPHA : … … 356 356 return rr; 357 357 } 358 358 359 359 virtual WriteResult writeImage(const osg::Image& img,std::ostream& fout,const osgDB::ReaderWriter::Options* options) const 360 360 {
