Changeset 13041 for OpenSceneGraph/trunk/src/osgPlugins/ive/Image.cpp
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/src/osgPlugins/ive/Image.cpp (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/ive/Image.cpp
r12912 r13041 40 40 { 41 41 out->writeInt((int)getWriteHint()); 42 } 42 } 43 43 44 44 // Write width, height, depth of image. … … 46 46 out->writeInt(t()); 47 47 out->writeInt(r()); 48 49 48 49 50 50 OSG_DEBUG << "image written '" << getFileName()<<"'\t"<<s()<<"\t"<<t()<<std::endl; 51 51 … … 57 57 58 58 // Write modified tag. 59 out->writeInt(getModifiedCount()); 59 out->writeInt(getModifiedCount()); 60 60 61 61 // Write mipmapdata vector … … 99 99 // Read name 100 100 setFileName(in->readString()); 101 101 102 102 if ( in->getVersion() >= VERSION_0032) 103 103 { 104 104 setWriteHint((osg::Image::WriteHint)in->readInt()); 105 } 105 } 106 106 107 107 // Read width, height, depth of image. … … 119 119 setModifiedCount((unsigned int)in->readInt()); 120 120 121 // Read mipmapdata vector 121 // Read mipmapdata vector 122 122 int size = in->readInt(); 123 123 MipmapDataType mipmapData(size); … … 131 131 } 132 132 //std::cout<<std::endl; 133 133 134 134 135 135 // Read image data if any … … 137 137 { 138 138 unsigned int dataSize = (unsigned int)in->readInt(); 139 139 140 140 //static int totalSize = 0; 141 141 142 142 //totalSize += dataSize; 143 143 //std::cout<<getFileName()<<" "<<is<<" "<<it<<std::endl; 144 144 //std::cout<<" dataSize = "<<dataSize<<"\tTotalSize = "<<totalSize<<std::endl; 145 146 145 146 147 147 //char* data = (char*)malloc (dataSize); 148 148 char* data = new char[dataSize];
