From ec8624f1855200418f0ef5535be1b0b7832dbc4e Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 10 Feb 2005 15:52:18 +0000 Subject: [PATCH] Implemented the osg::Image::isImagTranslucent function. --- src/osg/Image.cpp | 91 +++++++++++++++++++++++++---------------------- 1 file changed, 49 insertions(+), 42 deletions(-) diff --git a/src/osg/Image.cpp b/src/osg/Image.cpp index 0882df466..c499db6fc 100644 --- a/src/osg/Image.cpp +++ b/src/osg/Image.cpp @@ -835,56 +835,63 @@ void Image::ensureValidSizeForTexturing(GLint maxTextureSize) } } + +template +bool _findLowerAlphaValueInRow(unsigned int num, T* data,T value, unsigned int delta) +{ + for(unsigned int i=0;i