Added initial looping and pause play support

This commit is contained in:
Robert Osfield
2008-08-14 16:29:12 +00:00
parent 56001f3d82
commit 49e7358bf6
2 changed files with 39 additions and 5 deletions

View File

@@ -51,6 +51,12 @@ class OSG_EXPORT ImageSequence : public ImageStream
typedef std::list< osg::ref_ptr<osg::Image> > Images;
typedef std::list< std::string > FileNames;
virtual void play();
virtual void pause();
virtual void rewind();
enum Mode
{
PRE_LOAD_ALL_IMAGES,
@@ -64,6 +70,9 @@ class OSG_EXPORT ImageSequence : public ImageStream
void setDuration(double duration);
double getDuration() const { return _duration; }
virtual double getLength() const { return getDuration(); }
void addImageFile(const std::string& fileName);
FileNames& getFileNames() { return _fileNames; }