diff options
author | Sven Gothel <sgothel@jausoft.com> | 2014-04-09 08:33:00 +0200 |
---|---|---|
committer | Sven Gothel <sgothel@jausoft.com> | 2014-04-09 08:33:00 +0200 |
commit | 7ff2fcb36540aaed087e3a2ba2f0f84916bce2e2 (patch) | |
tree | 2e7cbc8c112ba47c476212eb728a4fa6ec040e2f /src/test | |
parent | be8d0765317cdcb44bbe3016cc18273ecace9324 (diff) |
Add TextureSequence.isTextureAvailable(), allowing triggering action only when source becomes ready
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/com/jogamp/opengl/test/junit/jogl/demos/TextureSequenceDemo01.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/demos/TextureSequenceDemo01.java b/src/test/com/jogamp/opengl/test/junit/jogl/demos/TextureSequenceDemo01.java index b015aebba..7034f2c67 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/demos/TextureSequenceDemo01.java +++ b/src/test/com/jogamp/opengl/test/junit/jogl/demos/TextureSequenceDemo01.java @@ -77,6 +77,9 @@ public class TextureSequenceDemo01 implements TextureSequence { } @Override + public boolean isTextureAvailable() { return true; } + + @Override public TextureSequence.TextureFrame getLastTexture() throws IllegalStateException { return frame; // may return null } |