From bd10664189e944699492008776819a28a2d95ecf Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 28 Apr 2023 12:36:47 +0200 Subject: GraphUI GraphShape: Apply {update->reset}GLRegion() See commit 386f9652e0169b0aa7f6ead1bf230d5d67d00a38 --- src/graphui/classes/com/jogamp/graph/ui/shapes/BaseButton.java | 2 +- src/graphui/classes/com/jogamp/graph/ui/shapes/CrossHair.java | 2 +- src/graphui/classes/com/jogamp/graph/ui/shapes/Rectangle.java | 2 +- src/graphui/classes/com/jogamp/graph/ui/shapes/TexSeqButton.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/graphui/classes/com/jogamp/graph') diff --git a/src/graphui/classes/com/jogamp/graph/ui/shapes/BaseButton.java b/src/graphui/classes/com/jogamp/graph/ui/shapes/BaseButton.java index a4d0ee67a..7c3b1119e 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/shapes/BaseButton.java +++ b/src/graphui/classes/com/jogamp/graph/ui/shapes/BaseButton.java @@ -101,7 +101,7 @@ public class BaseButton extends GraphShape { @Override protected void addShapeToRegion(final GLProfile glp, final GL2ES2 gl) { final OutlineShape shape = createBaseShape(0f); - updateGLRegion(glp, gl, null, shape); + resetGLRegion(glp, gl, null, shape); region.addOutlineShape(shape, null, rgbaColor); box.resize(shape.getBounds()); setRotationPivot( box.getCenter() ); diff --git a/src/graphui/classes/com/jogamp/graph/ui/shapes/CrossHair.java b/src/graphui/classes/com/jogamp/graph/ui/shapes/CrossHair.java index bd088c90e..d27fe53e7 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/shapes/CrossHair.java +++ b/src/graphui/classes/com/jogamp/graph/ui/shapes/CrossHair.java @@ -90,7 +90,7 @@ public class CrossHair extends GraphShape { shape.setIsQuadraticNurbs(); shape.setSharpness(oshapeSharpness); - updateGLRegion(glp, gl, null, shape); + resetGLRegion(glp, gl, null, shape); region.addOutlineShape(shape, null, rgbaColor); box.resize(shape.getBounds()); setRotationPivot( box.getCenter() ); diff --git a/src/graphui/classes/com/jogamp/graph/ui/shapes/Rectangle.java b/src/graphui/classes/com/jogamp/graph/ui/shapes/Rectangle.java index d11e3bdb1..90433a45e 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/shapes/Rectangle.java +++ b/src/graphui/classes/com/jogamp/graph/ui/shapes/Rectangle.java @@ -91,7 +91,7 @@ public class Rectangle extends GraphShape { shape.setIsQuadraticNurbs(); shape.setSharpness(oshapeSharpness); - updateGLRegion(glp, gl, null, shape); + resetGLRegion(glp, gl, null, shape); region.addOutlineShape(shape, null, rgbaColor); box.resize(shape.getBounds()); setRotationPivot( box.getCenter() ); diff --git a/src/graphui/classes/com/jogamp/graph/ui/shapes/TexSeqButton.java b/src/graphui/classes/com/jogamp/graph/ui/shapes/TexSeqButton.java index 86cff4dae..0dbd11adf 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/shapes/TexSeqButton.java +++ b/src/graphui/classes/com/jogamp/graph/ui/shapes/TexSeqButton.java @@ -58,7 +58,7 @@ public abstract class TexSeqButton extends BaseButton { @Override protected void addShapeToRegion(final GLProfile glp, final GL2ES2 gl) { final OutlineShape shape = createBaseShape(0f); - updateGLRegion(glp, gl, texSeq, shape); + resetGLRegion(glp, gl, texSeq, shape); region.addOutlineShape(shape, null, rgbaColor); box.resize(shape.getBounds()); setRotationPivot( box.getCenter() ); -- cgit v1.2.3