diff options
Diffstat (limited to 'src/jogl')
4 files changed, 18 insertions, 0 deletions
diff --git a/src/jogl/classes/com/jogamp/graph/curve/opengl/GLRegion.java b/src/jogl/classes/com/jogamp/graph/curve/opengl/GLRegion.java index 2864f48bb..c282a4b92 100644 --- a/src/jogl/classes/com/jogamp/graph/curve/opengl/GLRegion.java +++ b/src/jogl/classes/com/jogamp/graph/curve/opengl/GLRegion.java @@ -356,6 +356,9 @@ public abstract class GLRegion extends Region { }
}
+ /** Set the 2nd pass texture unit. */
+ public abstract void setTextureUnit(final int pass2TexUnit);
+
@Override
protected final void pushVertex(final Vec3f coords, final Vec3f texParams, final Vec4f rgba) {
// NIO array[3] is much slows than group/single
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 @@ -127,6 +127,11 @@ public final class VBORegion2PMSAAES2 extends GLRegion { } @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 @@ -220,6 +220,11 @@ public final class VBORegion2PVBAAES2 extends GLRegion { } @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 @@ -75,6 +75,11 @@ public final class VBORegionSPES2 extends GLRegion { } @Override + public void setTextureUnit(final int pass2TexUnit) { + // nop + } + + @Override protected final void clearImpl(final GL2ES2 gl) { } @Override |