From 6faab9ada2a7e2b99bb20ce828915a07fdcbea27 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 14 Mar 2023 14:17:53 +0100 Subject: TextureSequence (API Change): Use setTextureLookupFunctionName(..) explicitly to set the name upfront, clarifying workflow. Impl: ImageSequence + GLMediaPlayerImpl --- src/demos/com/jogamp/opengl/demos/av/MovieSBSStereo.java | 2 +- src/demos/com/jogamp/opengl/demos/es2/TextureSequenceCubeES2.java | 2 +- src/demos/com/jogamp/opengl/demos/es2/TextureSequenceES2.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/demos/com/jogamp/opengl') 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 -- cgit v1.2.3