From de4767e90f752cb9804403fa4ac775394bb45324 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 1 Aug 2023 18:57:41 +0200 Subject: Graph Add {GLRegion, GraphShape}.setTextureUnit(int): Allowing to set texture unit after ctor --- src/jogl/classes/jogamp/graph/curve/opengl/VBORegion2PMSAAES2.java | 5 +++++ src/jogl/classes/jogamp/graph/curve/opengl/VBORegion2PVBAAES2.java | 5 +++++ src/jogl/classes/jogamp/graph/curve/opengl/VBORegionSPES2.java | 5 +++++ 3 files changed, 15 insertions(+) (limited to 'src/jogl/classes/jogamp/graph') diff --git a/src/jogl/classes/jogamp/graph/curve/opengl/VBORegion2PMSAAES2.java b/src/jogl/classes/jogamp/graph/curve/opengl/VBORegion2PMSAAES2.java index 62451ec50..e5221eefb 100644 --- a/src/jogl/classes/jogamp/graph/curve/opengl/VBORegion2PMSAAES2.java +++ b/src/jogl/classes/jogamp/graph/curve/opengl/VBORegion2PMSAAES2.java @@ -126,6 +126,11 @@ public final class VBORegion2PMSAAES2 extends GLRegion { false, 4, GL.GL_STATIC_DRAW); } + @Override + public void setTextureUnit(final int pass2TexUnit) { + gcu_FboTexUnit.setData(pass2TexUnit); + } + @Override protected final void clearImpl(final GL2ES2 gl) { fboDirty = true; diff --git a/src/jogl/classes/jogamp/graph/curve/opengl/VBORegion2PVBAAES2.java b/src/jogl/classes/jogamp/graph/curve/opengl/VBORegion2PVBAAES2.java index 3acbd6c73..f7ab0a2d6 100644 --- a/src/jogl/classes/jogamp/graph/curve/opengl/VBORegion2PVBAAES2.java +++ b/src/jogl/classes/jogamp/graph/curve/opengl/VBORegion2PVBAAES2.java @@ -219,6 +219,11 @@ public final class VBORegion2PVBAAES2 extends GLRegion { false, 4, GL.GL_STATIC_DRAW); } + @Override + public void setTextureUnit(final int pass2TexUnit) { + gcu_FboTexUnit.setData(pass2TexUnit); + } + @Override protected final void clearImpl(final GL2ES2 gl) { fboDirty = true; diff --git a/src/jogl/classes/jogamp/graph/curve/opengl/VBORegionSPES2.java b/src/jogl/classes/jogamp/graph/curve/opengl/VBORegionSPES2.java index a55bd626a..9d9e2bbea 100644 --- a/src/jogl/classes/jogamp/graph/curve/opengl/VBORegionSPES2.java +++ b/src/jogl/classes/jogamp/graph/curve/opengl/VBORegionSPES2.java @@ -74,6 +74,11 @@ public final class VBORegionSPES2 extends GLRegion { } } + @Override + public void setTextureUnit(final int pass2TexUnit) { + // nop + } + @Override protected final void clearImpl(final GL2ES2 gl) { } -- cgit v1.2.3