Changeset 12181 for OpenSceneGraph/trunk/examples/osgvolume/osgvolume.cpp
- Timestamp:
- 02/23/11 11:37:51 (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgvolume/osgvolume.cpp
r12179 r12181 477 477 pixelFormat==GL_LUMINANCE_ALPHA || 478 478 pixelFormat==GL_RGB || 479 pixelFormat==GL_RGBA) 479 pixelFormat==GL_RGBA || 480 pixelFormat==GL_BGR || 481 pixelFormat==GL_BGRA) 480 482 { 481 483 max_s = osg::maximum(image->s(), max_s); … … 486 488 else 487 489 { 488 osg::notify(osg::NOTICE)<<"Image "<<image->getFileName()<<" has unsuitable pixel format "<< std::hex<< pixelFormat << std::dec << std::endl;490 osg::notify(osg::NOTICE)<<"Image "<<image->getFileName()<<" has unsuitable pixel format 0x"<< std::hex<< pixelFormat << std::dec << std::endl; 489 491 } 490 492 } … … 1243 1245 if(image) 1244 1246 { 1247 OSG_NOTICE<<"Read osg::Image FileName::"<<image->getFileName()<<", pixelFormat=0x"<<std::hex<<image->getPixelFormat()<<std::dec<<", s="<<image->s()<<", t="<<image->t()<<", r="<<image->r()<<std::endl; 1245 1248 imageList.push_back(image); 1246 1249 } … … 1254 1257 if(image) 1255 1258 { 1259 OSG_NOTICE<<"Read osg::Image FileName::"<<image->getFileName()<<", pixelFormat=0x"<<std::hex<<image->getPixelFormat()<<std::dec<<", s="<<image->s()<<", t="<<image->t()<<", r="<<image->r()<<std::endl; 1256 1260 imageList.push_back(image); 1257 1261 } … … 1264 1268 ProcessRow processRow; 1265 1269 osg::Image* image = createTexture3D(imageList, processRow, numComponentsDesired, s_maximumTextureSize, t_maximumTextureSize, r_maximumTextureSize, resizeToPowerOfTwo); 1266 if (image) images.push_back(image); 1270 if (image) 1271 { 1272 images.push_back(image); 1273 } 1267 1274 } 1268 1275
