- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/pnm/ReaderWriterPNM.cpp
r12656 r13041 224 224 supportsExtension("pbm","PNM Image format"); 225 225 } 226 226 227 227 virtual const char* className() const { return "PNM Image Reader/Writer"; } 228 228 … … 418 418 else 419 419 { 420 // binary ppm format 420 // binary ppm format 421 421 fout<<"P6"<<std::endl; 422 422 fout<<image.s()<<" "<<image.t()<<std::endl; … … 441 441 std::string ext = osgDB::getFileExtension(fileName); 442 442 if ( !osgDB::equalCaseInsensitive(ext, "ppm") ) return WriteResult::FILE_NOT_HANDLED; 443 443 444 444 // only support rgb images right now. 445 445 if (image.getPixelFormat()!=GL_RGB || image.getDataType()!=GL_UNSIGNED_BYTE) return WriteResult("Error image pixel format not supported by pnm writer.");
