Added support for setting the <image> paging_mode property to PRE_LOAD_ALL_IMAGES, PAGE_AND_RETAIN_IMAGES or PAGE_AND_DICARD_IMAGE for osg::ImageStream,

with PAGE_AND_DICARD_IMAGE set as the default.
This commit is contained in:
Robert Osfield
2012-06-11 19:54:07 +00:00
parent c39ee015d6
commit 2faeaf553b
3 changed files with 38 additions and 3 deletions

View File

@@ -21,6 +21,7 @@
#include <osg/AnimationPath>
#include <osg/TransferFunction>
#include <osg/ImageStream>
#include <osg/ImageSequence>
#include <osgText/Text>
#include <osgGA/GUIEventAdapter>
@@ -240,7 +241,9 @@ public:
page(-1),
backgroundColor(1.0f,1.0f,1.0f,1.0f),
fps(30.0),
duration(-1.0) {}
duration(-1.0),
imageSequencePagingMode(osg::ImageSequence::PAGE_AND_DISCARD_USED_IMAGES)
{}
std::string options;
float width;
@@ -253,6 +256,7 @@ public:
osg::Vec4 backgroundColor;
double fps;
double duration;
osg::ImageSequence::Mode imageSequencePagingMode;
};
struct VolumeData