aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp/opengl/util
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-04-09 08:33:00 +0200
committerSven Gothel <[email protected]>2014-04-09 08:33:00 +0200
commit7ff2fcb36540aaed087e3a2ba2f0f84916bce2e2 (patch)
tree2e7cbc8c112ba47c476212eb728a4fa6ec040e2f /src/jogl/classes/com/jogamp/opengl/util
parentbe8d0765317cdcb44bbe3016cc18273ecace9324 (diff)
Add TextureSequence.isTextureAvailable(), allowing triggering action only when source becomes ready
Diffstat (limited to 'src/jogl/classes/com/jogamp/opengl/util')
-rw-r--r--src/jogl/classes/com/jogamp/opengl/util/texture/TextureSequence.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/util/texture/TextureSequence.java b/src/jogl/classes/com/jogamp/opengl/util/texture/TextureSequence.java
index ab9d1f8f0..88f40e927 100644
--- a/src/jogl/classes/com/jogamp/opengl/util/texture/TextureSequence.java
+++ b/src/jogl/classes/com/jogamp/opengl/util/texture/TextureSequence.java
@@ -174,6 +174,12 @@ public interface TextureSequence {
public int[] getTextureWrapST();
/**
+ * Returns true if texture source is ready <i>and</i> a texture is available
+ * via {@link #getNextTexture(GL)} and {@link #getLastTexture()}.
+ */
+ public boolean isTextureAvailable();
+
+ /**
* Returns the last updated texture.
* <p>
* In case the instance is just initialized, it shall return a <code>TextureFrame</code>