Skip to content

Commit

Permalink
added isComplete()
Browse files Browse the repository at this point in the history
  • Loading branch information
Animator authored and Animator committed Dec 12, 2011
1 parent 896f373 commit ec17abb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/TextureSequence.cpp
Expand Up @@ -66,6 +66,8 @@ void TextureSequence::setPlayheadPosition( int newPosition ){
playheadPosition = max( 0, min( newPosition, totalFrames ) );
}



void TextureSequence::createFromTextureList( vector<Texture *> textureList ){
textures.clear();
textures = textureList;
Expand Down
3 changes: 3 additions & 0 deletions include/TextureSequence.h
Expand Up @@ -42,6 +42,9 @@ class TextureSequence{
bool isPlaying() { return playing; }
bool isPaused() { return paused; }

//isDone returns true if sequence played thru and looping = false;
bool isComplete()const{return complete;};

protected:
int playheadPosition;
int playheadFrameInc;
Expand Down

0 comments on commit ec17abb

Please sign in to comment.