aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp/opengl/util/texture/TextureSequence.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/jogl/classes/com/jogamp/opengl/util/texture/TextureSequence.java')
-rw-r--r--src/jogl/classes/com/jogamp/opengl/util/texture/TextureSequence.java21
1 files changed, 20 insertions, 1 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 88f40e927..ee3b600a5 100644
--- a/src/jogl/classes/com/jogamp/opengl/util/texture/TextureSequence.java
+++ b/src/jogl/classes/com/jogamp/opengl/util/texture/TextureSequence.java
@@ -257,5 +257,24 @@ public interface TextureSequence {
*
* @throws IllegalStateException if instance is not initialized
*/
- public String getTextureLookupFragmentShaderImpl() throws IllegalStateException ;
+ public String getTextureLookupFragmentShaderImpl() throws IllegalStateException;
+
+ /**
+ * Returns the hash code of the strings:
+ * <ul>
+ * <li>{@link #getTextureLookupFragmentShaderImpl()}</li>
+ * <li>{@link #getTextureSampler2DType()}</li>
+ * </ul>
+ * <p>
+ * Returns zero if {@link #isTextureAvailable() texture is not available}.
+ * </p>
+ * The returned hash code allows selection of a matching shader program for this {@link TextureSequence} instance.
+ * <p>
+ * </p>
+ * <p>
+ * Implementation shall cache the resulting hash code,
+ * which must be reset to zero if {@link #isTextureAvailable() texture is not available}.
+ * </p>
+ */
+ public int getTextureFragmentShaderHashCode();
}