Created
December 6, 2011 15:51
-
-
Save casallas/1438661 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: include/osgwTools/TransparencyUtils.h | |
=================================================================== | |
--- include/osgwTools/TransparencyUtils.h (revision 390) | |
+++ include/osgwTools/TransparencyUtils.h (working copy) | |
@@ -112,6 +112,15 @@ | |
return( true ); | |
} | |
+ | |
+/** \brief Returns True if the given StateSet is configured like one of our transparent StateSets. | |
+ \It returns True if the Node has a StateSet, and the StateSet has the following signature: | |
+ \li A BlendColor StateAttribute | |
+ \li A BlendFunc StateAttribute | |
+ \li GL_BLEND is enabled | |
+ \li Rendering hint set to TRANSPARENT_BIN | |
+ */ | |
+OSGWTOOLS_EXPORT bool isTransparent( const osg::StateSet* stateSet ); | |
/** \brief Restores opacity by undoing the effects of a prior call to transparentEnable. | |
If the Node or Drawable isn't transparent (as defined by the isTransparent call), | |
@@ -170,17 +179,8 @@ | |
return( true ); | |
} | |
-/** \brief Returns True if the given StateSet is configured like one of our transparent StateSets. | |
-\It returns True if the Node has a StateSet, and the StateSet has the following signature: | |
-\li A BlendColor StateAttribute | |
-\li A BlendFunc StateAttribute | |
-\li GL_BLEND is enabled | |
-\li Rendering hint set to TRANSPARENT_BIN | |
-*/ | |
-OSGWTOOLS_EXPORT bool isTransparent( const osg::StateSet* stateSet ); | |
- | |
/** \brief Finds StateSets with nominal transparency and marks the transparent state as PROTECTED | |
The function runs this Node visitor on scene graphs (for example, loaded models) that already potentially |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Need to declare isTransparent before calling in on the
osgwTools::transparentDisable
template, else you would get a message like this on clang: