From 43790b07b3761524cd47bc44b488784bcdcd1660 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sun, 10 Jun 2007 19:22:13 +0000 Subject: [PATCH] From Vladimir Shabanov, "osg::Image::isImageTranslucent() now handles GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_INT_10_10_10_2, GL_UNSIGNED_INT_2_10_10_10_REV and GL_HALF_FLOAT_NV pixel formats." --- src/osg/Image.cpp | 52 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/src/osg/Image.cpp b/src/osg/Image.cpp index f8d86d588..9916de898 100644 --- a/src/osg/Image.cpp +++ b/src/osg/Image.cpp @@ -963,6 +963,17 @@ bool _findLowerAlphaValueInRow(unsigned int num, T* data,T value, unsigned int d return false; } +template +bool _maskedFindLowerAlphaValueInRow(unsigned int num, T* data,T value, T mask, unsigned int delta) +{ + for(unsigned int i=0;i