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/com/jogamp/graph/curve/opengl/GLRegion.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/jogl/classes/com/jogamp/graph/curve') 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 -- cgit v1.2.3