Added support for <image blending="ON" or blending="OFF"> to allow user definition of when to enable OpenGL blending for an image or not.

This commit is contained in:
Robert Osfield
2012-11-13 14:22:37 +00:00
parent 0c02ef358f
commit 057f8a8b3b
3 changed files with 40 additions and 1 deletions

View File

@@ -246,7 +246,8 @@ public:
duration(-1.0),
imageSequence(false),
imageSequencePagingMode(osg::ImageSequence::PAGE_AND_DISCARD_USED_IMAGES),
imageSequenceInteractionMode(PLAY_AUTOMATICALLY_LIKE_MOVIE)
imageSequenceInteractionMode(PLAY_AUTOMATICALLY_LIKE_MOVIE),
blendingHint(USE_IMAGE_ALPHA)
{}
std::string options;
@@ -271,7 +272,16 @@ public:
USE_MOUSE_Y_POSITION
};
ImageSequenceInteractionMode imageSequenceInteractionMode;
enum BlendingHint
{
USE_IMAGE_ALPHA,
OFF,
ON
};
BlendingHint blendingHint;
};
struct VolumeData