diff --git a/src/osg/Image.cpp b/src/osg/Image.cpp index 931d58796..693e57d58 100644 --- a/src/osg/Image.cpp +++ b/src/osg/Image.cpp @@ -475,6 +475,58 @@ void Image::computeMipMaps() } +bool Image::isImageTranslucent() const +{ + + + if (getPixelFormat()==GL_LUMINANCE_ALPHA) + { + return true; + + + // unfinished code so commenting out right now... +// switch(type) +// { +// case(GL_BYTE): +// { +// int rowSizeInBytes = getRowSizeInBytes(); +// int imageSizeInBytes = getImageSizeInBytes(); +// +// for (int r=0;r<_r,++r) +// { +// for (int t=0;t