Changeset 8300
- Timestamp:
- 05/10/08 19:23:12
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
OpenSceneGraph/trunk/src/osgPlugins/3dc/ReaderWriter3DC.cpp
r7076 r8300 32 32 if (fileName.empty()) return ReadResult::FILE_NOT_FOUND; 33 33 34 std::cout << "try to readfile "<<fileName<<std::endl;34 osg::notify(osg::INFO) << "Reading file "<<fileName<<std::endl; 35 35 36 36 const int LINE_SIZE = 1024; … … 55 55 56 56 57 std::cout<< "num="<<num<<std::endl;57 osg::notify(osg::INFO) << "num="<<num<<std::endl; 58 58 59 59 unsigned int targetNumVertices = 10000; … … 81 81 { 82 82 // comment line 83 //std::cout<<"Comment: "<<line<<std::endl;83 osg::notify(osg::INFO) <<"Comment: "<<line<<std::endl; 84 84 } 85 85 else if (strlen(line)>0) OpenSceneGraph/trunk/src/osgPlugins/freetype/ReaderWriterFreeType.cpp
r7645 r8300 50 50 } 51 51 52 if ( options->getPluginData("3D"))52 if ( (options != NULL) && (options->getPluginData("3D")) ) 53 53 return freeTypeLibrary->getFont3D(fileName,0,getFlags(options)); 54 54 else OpenSceneGraph/trunk/src/osgPlugins/jpeg/ReaderWriterJPEG.cpp
r8295 r8300 756 756 imageData = simage_jpeg_load(fin,&width_ret,&height_ret,&numComponents_ret); 757 757 758 if (imageData==NULL) return ReadResult:: FILE_NOT_HANDLED;758 if (imageData==NULL) return ReadResult::ERROR_IN_READING_FILE; 759 759 760 760 int s = width_ret; … … 812 812 813 813 std::ifstream istream(fileName.c_str(), std::ios::in | std::ios::binary); 814 if(!istream) return ReadResult:: FILE_NOT_HANDLED;814 if(!istream) return ReadResult::ERROR_IN_READING_FILE; 815 815 ReadResult rr = readJPGStream(istream); 816 816 if(rr.validImage()) rr.getImage()->setFileName(file);
