summaryrefslogtreecommitdiffstats
path: root/src/demos/com/jogamp/opengl
diff options
context:
space:
mode:
authorSven Gothel <sgothel@jausoft.com>2023-03-14 14:17:53 +0100
committerSven Gothel <sgothel@jausoft.com>2023-03-14 14:17:53 +0100
commit6faab9ada2a7e2b99bb20ce828915a07fdcbea27 (patch)
treecf55401d676e8b31ba55eca93cde8d4fdb99984d /src/demos/com/jogamp/opengl
parent67a723477ecd818fbc5859fe20ee536a3b4efae5 (diff)
TextureSequence (API Change): Use setTextureLookupFunctionName(..) explicitly to set the name upfront, clarifying workflow. Impl: ImageSequence + GLMediaPlayerImpl
Diffstat (limited to 'src/demos/com/jogamp/opengl')
-rw-r--r--src/demos/com/jogamp/opengl/demos/av/MovieSBSStereo.java2
-rw-r--r--src/demos/com/jogamp/opengl/demos/es2/TextureSequenceCubeES2.java2
-rw-r--r--src/demos/com/jogamp/opengl/demos/es2/TextureSequenceES2.java2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/demos/com/jogamp/opengl/demos/av/MovieSBSStereo.java b/src/demos/com/jogamp/opengl/demos/av/MovieSBSStereo.java
index 519a51a87..3a59216d5 100644
--- a/src/demos/com/jogamp/opengl/demos/av/MovieSBSStereo.java
+++ b/src/demos/com/jogamp/opengl/demos/av/MovieSBSStereo.java
@@ -382,7 +382,7 @@ public class MovieSBSStereo implements StereoGLEventListener {
rsFpPos = rsFp.insertShaderSource(0, rsFpPos, mPlayer.getRequiredExtensionsShaderStub());
rsFp.addDefaultShaderPrecision(gl, rsFpPos);
- final String texLookupFuncName = mPlayer.getTextureLookupFunctionName(myTextureLookupName);
+ final String texLookupFuncName = mPlayer.setTextureLookupFunctionName(myTextureLookupName);
rsFp.replaceInShaderSource(myTextureLookupName, texLookupFuncName);
// Inject TextureSequence shader details
diff --git a/src/demos/com/jogamp/opengl/demos/es2/TextureSequenceCubeES2.java b/src/demos/com/jogamp/opengl/demos/es2/TextureSequenceCubeES2.java
index 26a26e3e1..211ac8cbf 100644
--- a/src/demos/com/jogamp/opengl/demos/es2/TextureSequenceCubeES2.java
+++ b/src/demos/com/jogamp/opengl/demos/es2/TextureSequenceCubeES2.java
@@ -185,7 +185,7 @@ public class TextureSequenceCubeES2 implements GLEventListener {
rsFpPos = rsFp.insertShaderSource(0, rsFpPos, texSeq.getRequiredExtensionsShaderStub());
rsFp.addDefaultShaderPrecision(gl, rsFpPos);
- final String texLookupFuncName = texSeq.getTextureLookupFunctionName(myTextureLookupName);
+ final String texLookupFuncName = texSeq.setTextureLookupFunctionName(myTextureLookupName);
rsFp.replaceInShaderSource(myTextureLookupName, texLookupFuncName);
// Inject TextureSequence shader details
diff --git a/src/demos/com/jogamp/opengl/demos/es2/TextureSequenceES2.java b/src/demos/com/jogamp/opengl/demos/es2/TextureSequenceES2.java
index fd934cb1e..95b4df8d6 100644
--- a/src/demos/com/jogamp/opengl/demos/es2/TextureSequenceES2.java
+++ b/src/demos/com/jogamp/opengl/demos/es2/TextureSequenceES2.java
@@ -121,7 +121,7 @@ public class TextureSequenceES2 implements GLEventListener {
rsFpPos = rsFp.insertShaderSource(0, rsFpPos, texSeq.getRequiredExtensionsShaderStub());
rsFp.addDefaultShaderPrecision(gl, rsFpPos);
- final String texLookupFuncName = texSeq.getTextureLookupFunctionName(myTextureLookupName);
+ final String texLookupFuncName = texSeq.setTextureLookupFunctionName(myTextureLookupName);
rsFp.replaceInShaderSource(myTextureLookupName, texLookupFuncName);
// Inject TextureSequence shader details