Added s/getLoopingMode() to ImageStream and MPEG plugin

This commit is contained in:
Robert Osfield
2004-08-24 12:55:15 +00:00
parent 5095ee5909
commit b2d39d7f5b
4 changed files with 50 additions and 3 deletions

View File

@@ -16,7 +16,8 @@
using namespace osg;
ImageStream::ImageStream():
_status(PAUSED)
_status(PAUSED),
_loopingMode(LOOPING)
{
setDataVariance(DYNAMIC);
}

View File

@@ -289,8 +289,14 @@ void MpegImageStream::run()
if (frameNumber>=_frames)
{
rewind();
//stop();
if (getLoopingMode()==LOOPING)
{
rewind();
}
else
{
pause();
}
}
else
{