diff options
author | Sven Gothel <[email protected]> | 2023-03-14 14:17:53 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-03-14 14:17:53 +0100 |
commit | 6faab9ada2a7e2b99bb20ce828915a07fdcbea27 (patch) | |
tree | cf55401d676e8b31ba55eca93cde8d4fdb99984d /src/test/com/jogamp | |
parent | 67a723477ecd818fbc5859fe20ee536a3b4efae5 (diff) |
TextureSequence (API Change): Use setTextureLookupFunctionName(..) explicitly to set the name upfront, clarifying workflow. Impl: ImageSequence + GLMediaPlayerImpl
Diffstat (limited to 'src/test/com/jogamp')
-rw-r--r-- | src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/TextureSequenceCubeES2.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/TextureSequenceCubeES2.java b/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/TextureSequenceCubeES2.java index aade02efa..540fb8eb3 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/TextureSequenceCubeES2.java +++ b/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/TextureSequenceCubeES2.java @@ -84,12 +84,15 @@ public class TextureSequenceCubeES2 implements GLEventListener { int ly = 0; boolean first = false; + @Override public void mousePressed(final MouseEvent e) { first = true; } + @Override public void mouseMoved(final MouseEvent e) { first = false; } + @Override public void mouseDragged(final MouseEvent e) { int width, height; final Object source = e.getSource(); @@ -143,6 +146,7 @@ public class TextureSequenceCubeES2 implements GLEventListener { ly = ny; } } + @Override public void mouseWheelMoved(final MouseEvent e) { // System.err.println("XXX "+e); if( !e.isShiftDown() ) { @@ -182,7 +186,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 @@ -206,6 +210,7 @@ public class TextureSequenceCubeES2 implements GLEventListener { GLArrayDataServer interleavedVBO, cubeIndicesVBO; + @Override public void init(final GLAutoDrawable drawable) { final GL2ES2 gl = drawable.getGL().getGL2ES2(); System.err.println(JoglVersion.getGLInfo(gl, null)); @@ -304,6 +309,7 @@ public class TextureSequenceCubeES2 implements GLEventListener { System.out.println(st); } + @Override public void reshape(final GLAutoDrawable drawable, final int x, final int y, final int width, final int height) { final GL2ES2 gl = drawable.getGL().getGL2ES2(); |