Refactored ImageSequence to provided a cleaner and more robust implementation

This commit is contained in:
Robert Osfield
2008-10-06 17:02:20 +00:00
parent 7e43decf4c
commit 8147bd4df8
4 changed files with 216 additions and 192 deletions

View File

@@ -65,7 +65,14 @@ class OSG_EXPORT ImageStream : public Image
LOOPING
};
void setLoopingMode(LoopingMode mode) { _loopingMode = mode; applyLoopingMode(); }
void setLoopingMode(LoopingMode mode)
{
if (_loopingMode == mode) return;
_loopingMode = mode;
applyLoopingMode();
}
LoopingMode getLoopingMode() const { return _loopingMode; }