Skip to content

Instantly share code, notes, and snippets.

@casallas
Created December 6, 2011 16:15
Show Gist options
  • Save casallas/1438764 to your computer and use it in GitHub Desktop.
Save casallas/1438764 to your computer and use it in GitHub Desktop.
diff --git a/include/osgwTools/TransparencyUtils.h b/Users/juan/dev/osgw2/include/osgwTools/TransparencyUtils.h
index 3808db6..e7216de 100644
--- a/include/osgwTools/TransparencyUtils.h
+++ b/Users/juan/dev/osgw2/include/osgwTools/TransparencyUtils.h
@@ -112,6 +112,16 @@ bool transparentEnable( T* nodeOrDrawable, float alpha )
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 +180,6 @@ bool transparentDisable( T* nodeOrDrawable, bool recursive=false )
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
@casallas
Copy link
Author

casallas commented Dec 6, 2011

git patch version of https://gist.github.com/1438661 (which is svn)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment