From 7ff2fcb36540aaed087e3a2ba2f0f84916bce2e2 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 9 Apr 2014 08:33:00 +0200 Subject: Add TextureSequence.isTextureAvailable(), allowing triggering action only when source becomes ready --- .../classes/com/jogamp/opengl/util/texture/TextureSequence.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/jogl/classes/com/jogamp/opengl/util') 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 @@ -173,6 +173,12 @@ public interface TextureSequence { public int[] getTextureWrapST(); + /** + * Returns true if texture source is ready and a texture is available + * via {@link #getNextTexture(GL)} and {@link #getLastTexture()}. + */ + public boolean isTextureAvailable(); + /** * Returns the last updated texture. *

-- cgit v1.2.3